Skip to content

Commit ff8009e

Browse files
committed
DOC: Validate PEP-8 of fixed resample docstrings (pandas-dev#22894)
1 parent 7940cbe commit ff8009e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

pandas/core/generic.py

+7-5
Original file line numberDiff line numberDiff line change
@@ -7378,18 +7378,20 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
73787378
rule : string
73797379
The offset string or object representing target conversion.
73807380
how : string
7381-
Method for down- or re-sampling, default to ‘mean’ for downsampling.
7381+
Method for down-/re-sampling, default to ‘mean’ for downsampling.
73827382
73837383
.. deprecated:: 0.18.0
7384-
The new syntax is .resample(...).mean(), or .resample(...).apply(<func>)
7384+
The new syntax is .resample(...).mean(), or
7385+
.resample(...).apply(<func>)
73857386
axis : int, optional, default 0
7386-
Which index to use for up- or down-sampling. Must be ``DatetimeIndex``,
7387-
``TimedeltaIndex`` or ``PeriodIndex``.
7387+
Which index to use for up- or down-sampling. Must be
7388+
``DatetimeIndex``, ``TimedeltaIndex`` or ``PeriodIndex``.
73887389
fill_method : string, default None
73897390
Filling method for upsampling.
73907391
73917392
.. deprecated:: 0.18.0
7392-
The new syntax is .resample(...).<func>(), e.g. .resample(...).pad()
7393+
The new syntax is .resample(...).<func>(),
7394+
e.g. .resample(...).pad()
73937395
closed : {'right', 'left'}
73947396
Which side of bin interval is closed. The default is 'left'
73957397
for all frequency offsets except for 'M', 'A', 'Q', 'BM',

0 commit comments

Comments
 (0)