Skip to content Skip to sidebar Skip to footer

How To Check If Dask Dataframe Is Empty If Lazily Evaluated?

I am aware of this question. But check the code(minimal-working example) below: import dask.dataframe as dd import pandas as pd # intialise data of lists. data = {'Name': ['Tom',

Solution 1:

It looks like you're run into a bug where a dataframe isn't printing correctly. If you felt like raising a bug report at https://github.com/dask/dask/issues/new that would be the right place to report this.

This shouldn't affect the check that you want to do though. Looking at .columns to see if there are any columns seems reasonable. The fact that the dataframe still has rows just means that there is still an index.

Post a Comment for "How To Check If Dask Dataframe Is Empty If Lazily Evaluated?"