Skip to content

Commit f71d48f

Browse files
committed
DOC: Improve inline code reST display (pandas-dev#22894)
1 parent ff8009e commit f71d48f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pandas/core/generic.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -7369,9 +7369,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
73697369
Resample a time series by changing the frequency of the index.
73707370
73717371
Convenience method for frequency conversion and resampling of time
7372-
series. Object must have a datetime-like index (DatetimeIndex,
7373-
PeriodIndex, or TimedeltaIndex), or pass datetime-like values
7374-
to the on or level keyword.
7372+
series. Object must have a datetime-like index (``DatetimeIndex``,
7373+
``PeriodIndex``, or ``TimedeltaIndex``), or pass datetime-like values
7374+
to the ``on`` or ``level`` keyword.
73757375
73767376
Parameters
73777377
----------
@@ -7381,17 +7381,17 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
73817381
Method for down-/re-sampling, default to ‘mean’ for downsampling.
73827382
73837383
.. deprecated:: 0.18.0
7384-
The new syntax is .resample(...).mean(), or
7385-
.resample(...).apply(<func>)
7384+
The new syntax is ``.resample(...).mean()``, or
7385+
``.resample(...).apply(<func>)``
73867386
axis : int, optional, default 0
73877387
Which index to use for up- or down-sampling. Must be
73887388
``DatetimeIndex``, ``TimedeltaIndex`` or ``PeriodIndex``.
73897389
fill_method : string, default None
73907390
Filling method for upsampling.
73917391
73927392
.. deprecated:: 0.18.0
7393-
The new syntax is .resample(...).<func>(),
7394-
e.g. .resample(...).pad()
7393+
The new syntax is ``.resample(...).<func>()``,
7394+
e.g. ``.resample(...).pad()``
73957395
closed : {'right', 'left'}
73967396
Which side of bin interval is closed. The default is 'left'
73977397
for all frequency offsets except for 'M', 'A', 'Q', 'BM',
@@ -7401,8 +7401,8 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
74017401
for all frequency offsets except for 'M', 'A', 'Q', 'BM',
74027402
'BA', 'BQ', and 'W' which all have a default of 'right'.
74037403
convention : {'start', 'end', 's', 'e'}
7404-
For PeriodIndex only, controls whether to use the start or end of
7405-
`rule`.
7404+
For ``PeriodIndex`` only, controls whether to use the start or
7405+
end of ``rule``.
74067406
kind : {'timestamp', 'period'} optional
74077407
Pass 'timestamp' to convert the resulting index to a
74087408
``DateTimeIndex`` or 'period' to convert it to a ``PeriodIndex``.
@@ -7425,7 +7425,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
74257425
74267426
level : string or int, optional
74277427
For a MultiIndex, level (name or number) to use for
7428-
resampling. Level must be datetime-like.
7428+
resampling. ``level`` must be datetime-like.
74297429
74307430
.. versionadded:: 0.19.0
74317431

0 commit comments

Comments
 (0)