bigframes.pandas.api.typing.DataFrameGroupBy.min#
- DataFrameGroupBy.min(numeric_only: bool = False, *args) DataFrame[source]#
Compute min of group values.
Examples:
For SeriesGroupBy:
>>> lst = ['a', 'a', 'b', 'b'] >>> ser = bpd.Series([1, 2, 3, 4], index=lst) >>> ser.groupby(level=0).min() a 1 b 3 dtype: Int64
For DataFrameGroupBy:
>>> data = [[1, 8, 2], [1, 2, 5], [2, 5, 8], [2, 6, 9]] >>> df = bpd.DataFrame(data, columns=["a", "b", "c"], ... index=["tiger", "leopard", "cheetah", "lion"]) >>> df.groupby(by=["a"]).min() b c a 1 2 2 2 5 8 [2 rows x 2 columns]
- Parameters:
- Returns:
Computed min of values within each group.
- Return type: