bigframes.pandas.api.typing.SeriesGroupBy.agg#
- SeriesGroupBy.agg(func=None) DataFrame | Series[source]#
Aggregate using one or more operations.
Examples:
>>> s = bpd.Series([1, 2, 3, 4], index=[1, 1, 2, 2]) >>> s.groupby(level=0).agg(['min', 'max']) min max 1 1 2 2 3 4 [2 rows x 2 columns]
- Parameters:
func –
function, str, list, dict or None Function to use for aggregating the data.
Accepted combinations are:
string function name
list of function names, e.g.
['sum', 'mean']
- Returns:
A BigQuery Series.
- Return type: