Series.aggregate(self, func, axis=0, *args, **kwargs) [source]
Aggregate using one or more operations over the specified axis.
New in version 0.20.0.
| Parameters: | 
  |  
|---|---|
| Returns: | 
  |  
See also
Series.apply
Series.transform
agg is an alias for aggregate. Use the alias.
A passed user-defined-function will be passed a Series for evaluation.
>>> s = pd.Series([1, 2, 3, 4]) >>> s 0 1 1 2 2 3 3 4 dtype: int64
>>> s.agg('min')
1
 >>> s.agg(['min', 'max']) min 1 max 4 dtype: int64
    © 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
    https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.Series.aggregate.html