MCPcopy Create free account
hub / github.com/dask/dask / chunk

Method chunk

dask/dataframe/dask_expr/_reductions.py:863–867  ·  view source on GitHub ↗
(cls, df, **kwargs)

Source from the content-addressed store, hash-verified

861
862 @classmethod
863 def chunk(cls, df, **kwargs):
864 func = kwargs.pop("func")
865 out = func(df, **kwargs)
866 # Return a dataframe so that the concatenated version is also a dataframe
867 return out.to_frame().T if is_series_like(out) else out
868
869 @classmethod
870 def combine(cls, inputs: list, **kwargs): # type: ignore

Callers

nothing calls this directly

Calls 4

is_series_likeFunction · 0.85
popMethod · 0.80
funcFunction · 0.50
to_frameMethod · 0.45

Tested by

no test coverage detected