是否有等效于pandas empty函数的功能?我想检查一下dask数据框是否为空,但是df.empty返回AttributeError: 'DataFrame' object has no attribute 'empty' 最佳答案 Dask当前不支持此功能,但是您可以动态计算长度:len(df) == 0 len(df.index) == 0 # Likely to be faster