|
14 | 14 | from pandas._typing import Axis, FrameOrSeries, Scalar
|
15 | 15 | from pandas.compat._optional import import_optional_dependency
|
16 | 16 | from pandas.compat.numpy import function as nv
|
17 |
| -from pandas.util._decorators import Appender, Substitution, cache_readonly |
| 17 | +from pandas.util._decorators import Appender, Substitution, cache_readonly, doc |
18 | 18 |
|
19 | 19 | from pandas.core.dtypes.common import (
|
20 | 20 | ensure_float64,
|
@@ -1065,14 +1065,14 @@ def _get_window(
|
1065 | 1065 | """
|
1066 | 1066 | )
|
1067 | 1067 |
|
1068 |
| - @Substitution( |
| 1068 | + @doc( |
| 1069 | + _shared_docs["aggregate"], |
1069 | 1070 | see_also=_agg_see_also_doc,
|
1070 | 1071 | examples=_agg_examples_doc,
|
1071 | 1072 | versionadded="",
|
1072 | 1073 | klass="Series/DataFrame",
|
1073 | 1074 | axis="",
|
1074 | 1075 | )
|
1075 |
| - @Appender(_shared_docs["aggregate"]) |
1076 | 1076 | def aggregate(self, func, *args, **kwargs):
|
1077 | 1077 | result, how = self._aggregate(func, *args, **kwargs)
|
1078 | 1078 | if result is None:
|
@@ -1921,14 +1921,14 @@ def _validate_freq(self):
|
1921 | 1921 | """
|
1922 | 1922 | )
|
1923 | 1923 |
|
1924 |
| - @Substitution( |
| 1924 | + @doc( |
| 1925 | + _shared_docs["aggregate"], |
1925 | 1926 | see_also=_agg_see_also_doc,
|
1926 | 1927 | examples=_agg_examples_doc,
|
1927 | 1928 | versionadded="",
|
1928 | 1929 | klass="Series/Dataframe",
|
1929 | 1930 | axis="",
|
1930 | 1931 | )
|
1931 |
| - @Appender(_shared_docs["aggregate"]) |
1932 | 1932 | def aggregate(self, func, *args, **kwargs):
|
1933 | 1933 | return super().aggregate(func, *args, **kwargs)
|
1934 | 1934 |
|
|
0 commit comments