[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.Series.aggregate.html [Back]  [Original]

bigframes.pandas.Series.aggregate — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.Series.aggregate#

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

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


Web Proxy Viewer  |  New URL  |  Original Page