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