|
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:
|
@@ -1934,14 +1934,14 @@ def _validate_freq(self):
|
1934 | 1934 | """
|
1935 | 1935 | )
|
1936 | 1936 |
|
1937 |
| - @Substitution( |
| 1937 | + @doc( |
| 1938 | + _shared_docs["aggregate"], |
1938 | 1939 | see_also=_agg_see_also_doc,
|
1939 | 1940 | examples=_agg_examples_doc,
|
1940 | 1941 | versionadded="",
|
1941 | 1942 | klass="Series/Dataframe",
|
1942 | 1943 | axis="",
|
1943 | 1944 | )
|
1944 |
| - @Appender(_shared_docs["aggregate"]) |
1945 | 1945 | def aggregate(self, func, *args, **kwargs):
|
1946 | 1946 | return super().aggregate(func, *args, **kwargs)
|
1947 | 1947 |
|
|
0 commit comments