@@ -5004,44 +5004,45 @@ def pipe(self, func, *args, **kwargs):
5004
5004
5005
5005
_shared_docs ["aggregate" ] = dedent (
5006
5006
"""
5007
- Aggregate using one or more operations over the specified axis.
5008
- %(versionadded)s
5009
- Parameters
5010
- ----------
5011
- func : function, str, list or dict
5012
- Function to use for aggregating the data. If a function, must either
5013
- work when passed a {klass} or when passed to {klass}.apply.
5014
-
5015
- Accepted combinations are:
5016
-
5017
- - function
5018
- - string function name
5019
- - list of functions and/or function names, e.g. ``[np.sum, 'mean']``
5020
- - dict of axis labels -> functions, function names or list of such.
5021
- %(axis)s
5022
- *args
5023
- Positional arguments to pass to `func`.
5024
- **kwargs
5025
- Keyword arguments to pass to `func`.
5026
-
5027
- Returns
5028
- -------
5029
- scalar, Series or DataFrame
5030
-
5031
- The return can be:
5032
-
5033
- * scalar : when Series.agg is called with single function
5034
- * Series : when DataFrame.agg is called with a single function
5035
- * DataFrame : when DataFrame.agg is called with several functions
5036
-
5037
- Return scalar, Series or DataFrame.
5038
- %(see_also)s
5039
- Notes
5040
- -----
5041
- `agg` is an alias for `aggregate`. Use the alias.
5042
-
5043
- A passed user-defined-function will be passed a Series for evaluation.
5044
- %(examples)s"""
5007
+ Aggregate using one or more operations over the specified axis.
5008
+ {versionadded}
5009
+ Parameters
5010
+ ----------
5011
+ func : function, str, list or dict
5012
+ Function to use for aggregating the data. If a function, must either
5013
+ work when passed a {klass} or when passed to {klass}.apply.
5014
+
5015
+ Accepted combinations are:
5016
+
5017
+ - function
5018
+ - string function name
5019
+ - list of functions and/or function names, e.g. ``[np.sum, 'mean']``
5020
+ - dict of axis labels -> functions, function names or list of such.
5021
+ {axis}
5022
+ *args
5023
+ Positional arguments to pass to `func`.
5024
+ **kwargs
5025
+ Keyword arguments to pass to `func`.
5026
+
5027
+ Returns
5028
+ -------
5029
+ scalar, Series or DataFrame
5030
+
5031
+ The return can be:
5032
+
5033
+ * scalar : when Series.agg is called with single function
5034
+ * Series : when DataFrame.agg is called with a single function
5035
+ * DataFrame : when DataFrame.agg is called with several functions
5036
+
5037
+ Return scalar, Series or DataFrame.
5038
+ {see_also}
5039
+ Notes
5040
+ -----
5041
+ `agg` is an alias for `aggregate`. Use the alias.
5042
+
5043
+ A passed user-defined-function will be passed a Series for evaluation.
5044
+ {examples}
5045
+ """
5045
5046
)
5046
5047
5047
5048
# ----------------------------------------------------------------------
0 commit comments