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

Method prod

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

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

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