bigframes.pandas.Series.agg#

Series.agg(func: str | Sequence[str]) Any | Series[source]#

Aggregate using one or more operations over the specified axis.

Examples:

>>> s = bpd.Series([1, 2, 3, 4])
>>> s
0    1
1    2
2    3
3    4
dtype: Int64
>>> s.agg('min')
np.int64(1)
>>> s.agg(['min', 'max'])
min    1
max    4
dtype: Int64
Parameters:

func (function) – Function to use for aggregating the data. Accepted combinations are: string function name, list of function names, e.g. ['sum', 'mean'].

Returns:

Aggregated results.

Return type:

scalar or bigframes.pandas.Series