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

Method prod

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

1531
1532 @derived_from(pd.DataFrame)
1533 def prod(
1534 self,
1535 axis=0,
1536 skipna=True,
1537 numeric_only=False,
1538 min_count=0,
1539 split_every=False,
1540 **kwargs,
1541 ):
1542 axis = self._validate_axis(axis)
1543 if axis == 1:
1544 return self.map_partitions(
1545 M.prod,
1546 skipna=skipna,
1547 numeric_only=numeric_only,
1548 axis=axis,
1549 min_count=min_count,
1550 )
1551 result = new_collection(self.expr.prod(skipna, numeric_only, split_every, axis))
1552 return self._apply_min_count(result, min_count)
1553
1554 product = prod
1555

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