Skip to content

Commit 7940cbe

Browse files
committed
DOC: Document deprecated parameters for resample (pandas-dev#22894)
Not too sure they were deprecated from v0.18.0. Need to point this out in the PR.
1 parent 2c23296 commit 7940cbe

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

pandas/core/generic.py

+16-1
Original file line numberDiff line numberDiff line change
@@ -7377,8 +7377,19 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
73777377
----------
73787378
rule : string
73797379
The offset string or object representing target conversion.
7380+
how : string
7381+
Method for down- or re-sampling, default to ‘mean’ for downsampling.
7382+
7383+
.. deprecated:: 0.18.0
7384+
The new syntax is .resample(...).mean(), or .resample(...).apply(<func>)
73807385
axis : int, optional, default 0
7381-
7386+
Which index to use for up- or down-sampling. Must be ``DatetimeIndex``,
7387+
``TimedeltaIndex`` or ``PeriodIndex``.
7388+
fill_method : string, default None
7389+
Filling method for upsampling.
7390+
7391+
.. deprecated:: 0.18.0
7392+
The new syntax is .resample(...).<func>(), e.g. .resample(...).pad()
73827393
closed : {'right', 'left'}
73837394
Which side of bin interval is closed. The default is 'left'
73847395
for all frequency offsets except for 'M', 'A', 'Q', 'BM',
@@ -7396,6 +7407,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
73967407
By default the input representation is retained.
73977408
loffset : timedelta
73987409
Adjust the resampled time labels.
7410+
limit : int, default None
7411+
Maximum size gap when reindexing with ``fill_method``.
7412+
7413+
.. deprecated:: 0.18.0
73997414
base : int, default 0
74007415
For frequencies that evenly subdivide 1 day, the "origin" of the
74017416
aggregated intervals. For example, for '5min' frequency, base could

0 commit comments

Comments
 (0)