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

Method prod

dask/dataframe/dask_expr/_collection.py:1493–1512  ·  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

1491
1492 @derived_from(pd.DataFrame)
1493 def prod(
1494 self,
1495 axis=0,
1496 skipna=True,
1497 numeric_only=False,
1498 min_count=0,
1499 split_every=False,
1500 **kwargs,
1501 ):
1502 axis = self._validate_axis(axis)
1503 if axis == 1:
1504 return self.map_partitions(
1505 M.prod,
1506 skipna=skipna,
1507 numeric_only=numeric_only,
1508 axis=axis,
1509 min_count=min_count,
1510 )
1511 result = new_collection(self.expr.prod(skipna, numeric_only, split_every, axis))
1512 return self._apply_min_count(result, min_count)
1513
1514 product = prod
1515

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected