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

Method reduction_chunk

dask/dataframe/dask_expr/_reductions.py:1160–1167  ·  view source on GitHub ↗
(cls, x, skipna)

Source from the content-addressed store, hash-verified

1158
1159 @classmethod
1160 def reduction_chunk(cls, x, skipna):
1161 values = x.values.astype("f8")
1162 if skipna:
1163 return moment_chunk(
1164 values, sum=chunk.nansum, numel=nannumel, keepdims=True, axis=(0,)
1165 )
1166 else:
1167 return moment_chunk(values, keepdims=True, axis=(0,))
1168
1169 @classmethod
1170 def reduction_combine(cls, parts, skipna):

Callers 3

chunkMethod · 0.45
chunkMethod · 0.45
chunkMethod · 0.45

Calls 2

moment_chunkFunction · 0.90
astypeMethod · 0.45

Tested by

no test coverage detected