MCPcopy
hub / github.com/dask/dask / sum

Method sum

dask/dataframe/dask_expr/_collection.py:1460–1480  ·  view source on GitHub ↗
(
        self,
        axis=0,
        skipna=True,
        numeric_only=False,
        min_count=0,
        split_every=False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

1458
1459 @derived_from(pd.DataFrame)
1460 def sum(
1461 self,
1462 axis=0,
1463 skipna=True,
1464 numeric_only=False,
1465 min_count=0,
1466 split_every=False,
1467 **kwargs,
1468 ):
1469 axis = self._validate_axis(axis)
1470 if axis == 1:
1471 return self.map_partitions(
1472 M.sum,
1473 skipna=skipna,
1474 numeric_only=numeric_only,
1475 axis=axis,
1476 min_count=min_count,
1477 )
1478
1479 result = new_collection(self.expr.sum(skipna, numeric_only, split_every, axis))
1480 return self._apply_min_count(result, min_count)
1481
1482 def _apply_min_count(self, result, min_count):
1483 if min_count:

Callers

nothing calls this directly

Calls 5

map_partitionsMethod · 0.95
_apply_min_countMethod · 0.95
new_collectionFunction · 0.90
_validate_axisMethod · 0.45
sumMethod · 0.45

Tested by

no test coverage detected