Skip to content

Commit 795e48d

Browse files
DOC: fix PR01,RT03,SA01 for pandas.core.resample.Resampler.transform
1 parent c0c778b commit 795e48d

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

ci/code_checks.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
6868
MSG='Validate Docstrings' ; echo $MSG
6969
$BASE_DIR/scripts/validate_docstrings.py \
7070
--format=actions \
71-
-i ES01 `# For now it is ok if docstrings are missing the extended summary` \
7271
-i "pandas.Series.dt PR01" `# Accessors are implemented as classes, but we do not document the Parameters section` \
7372
-i "pandas.Period.freq GL08" \
7473
-i "pandas.Period.ordinal GL08" \
@@ -82,7 +81,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8281
-i "pandas.core.groupby.DataFrameGroupBy.plot PR02" \
8382
-i "pandas.core.groupby.SeriesGroupBy.plot PR02" \
8483
-i "pandas.core.resample.Resampler.quantile PR01,PR07" \
85-
-i "pandas.core.resample.Resampler.transform PR01,RT03,SA01" \
8684
-i "pandas.tseries.offsets.BDay PR02,SA01" \
8785
-i "pandas.tseries.offsets.BQuarterBegin.is_on_offset GL08" \
8886
-i "pandas.tseries.offsets.BQuarterBegin.n GL08" \

pandas/core/resample.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,10 +378,22 @@ def transform(self, arg, *args, **kwargs):
378378
----------
379379
arg : function
380380
To apply to each group. Should return a Series with the same index.
381+
*args : function
382+
To apply to each group. Should return a Series with the same index.
383+
**kwargs : function
384+
To apply to each group. Should return a Series with the same index.
381385
382386
Returns
383387
-------
384388
Series
389+
A Series with the transformed values, maintaining the same index as
390+
the original object.
391+
392+
See Also
393+
--------
394+
core.resample.Resampler.apply : Apply a function along each group.
395+
core.resample.Resampler.aggregate : Aggregate using one or more operations
396+
over the specified axis.
385397
386398
Examples
387399
--------

0 commit comments

Comments
 (0)