Is there a dask equivalent of pandas empty
function? I want to check if a dask dataframe is empty but df.empty
return AttributeError: 'DataFrame' object has no attribute 'empty'
Dask doesn't currently support this, but you can compute the length on the fly:
len(df) == 0
len(df.index) == 0 # Likely to be faster
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With