dask.dataframe.Series.get_partition
dask.dataframe.Series.get_partition¶
- Series.get_partition(n)¶
Get a dask DataFrame/Series representing the nth partition.
- Parameters
- nint
The 0-indexed partition number to select.
- Returns
- Dask DataFrame or Series
The same type as the original object.
See also
Examples
>>> import dask >>> ddf = dask.datasets.timeseries(start="2021-01-01", end="2021-01-07", freq="1H") >>> ddf.get_partition(0) Dask DataFrame Structure: name id x y npartitions=1 2021-01-01 object int64 float64 float64 2021-01-02 ... ... ... ... Dask Name: get-partition, 2 graph layers