From dec6eb29b35c884e78c82525e1bb30280208714c Mon Sep 17 00:00:00 2001 From: Tuhin Sharma Date: Tue, 28 Jan 2025 23:41:54 +0530 Subject: [PATCH] DOC: fix PR01,RT03,SA01 for pandas.core.resample.Resampler.transform (#60805) * DOC: fix PR01,RT03,SA01 for pandas.core.resample.Resampler.transform * DOC: fix PR01,RT03,SA01 for pandas.core.resample.Resampler.transform --- ci/code_checks.sh | 1 - pandas/core/resample.py | 10 ++++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 2d0fcce47d2a5..ee5b7eb4f09fb 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -82,7 +82,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \ -i "pandas.core.groupby.SeriesGroupBy.plot PR02" \ -i "pandas.core.resample.Resampler.quantile PR01,PR07" \ - -i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \ -i "pandas.tseries.offsets.BDay PR02,SA01" \ -i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \ -i "pandas.tseries.offsets.BQuarterBegin.n GL08" \ diff --git a/pandas/core/resample.py b/pandas/core/resample.py index b1b8aef31d3c4..4b3b7a72b5a5c 100644 --- a/pandas/core/resample.py +++ b/pandas/core/resample.py @@ -378,10 +378,20 @@ def transform(self, arg, *args, **kwargs): ---------- arg : function To apply to each group. Should return a Series with the same index. + *args, **kwargs + Additional arguments and keywords. Returns ------- Series + A Series with the transformed values, maintaining the same index as + the original object. + + See Also + -------- + core.resample.Resampler.apply : Apply a function along each group. + core.resample.Resampler.aggregate : Aggregate using one or more operations + over the specified axis. Examples --------