Often, when working with a large dask.DataFrame
, it would be useful to grab only a few rows on which to test all subsequent operations.
Currently, according to Slicing a Dask Dataframe, this is unsupported.
- I was hoping to then use
head
to achieve the same (since that command is supported), but that returns a regular pandas DataFrame. - I also tried
df[:1000]
, which executes, but generates an output different from that you'd expect from Pandas.
Is there any way to grab the first 1000 rows from a dask.DataFrame
?