bigframes.pandas.api.typing.DataFrameGroupBy.prod#

DataFrameGroupBy.prod(numeric_only: bool = False, min_count: int = 0)#

Compute prod of group values. (DataFrameGroupBy functionality is not yet available.)

Examples:

For SeriesGroupBy:

>>> lst = ['a', 'a', 'b', 'b']
>>> ser = bpd.Series([1, 2, 3, 4], index=lst)
>>> ser.groupby(level=0).prod()
a     2.0
b    12.0
dtype: Float64
Parameters:
  • numeric_only (bool, default False) – Include only float, int, boolean columns.

  • min_count (int, default 0) – The required number of valid values to perform the operation. If fewer than min_count and non-NA values are present, the result will be NA.

Returns:

Computed prod of values within each group.

Return type:

bigframes.pandas.DataFrame or bigframes.pandas.Series