@@ -7369,9 +7369,9 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7369
7369
Resample time-series data.
7370
7370
7371
7371
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.
7375
7375
7376
7376
Parameters
7377
7377
----------
@@ -7383,10 +7383,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7383
7383
.. deprecated:: 0.18.0
7384
7384
The new syntax is ``.resample(...).mean()``, or
7385
7385
``.resample(...).apply(<func>)``
7386
- axis : {0 or 'index'}, default 0
7387
- Which axis to use for up- or down-sampling. For `` Series` ` this
7388
- will default to 0, i.e. ` along the rows` . Must be
7389
- `` DatetimeIndex`` , `` TimedeltaIndex`` or `` PeriodIndex` `.
7386
+ axis : {0 or 'index', 1 or 'columns' }, default 0
7387
+ Which axis to use for up- or down-sampling. For `Series` this
7388
+ will default to 0, i.e. along the rows. Must be
7389
+ `DatetimeIndex`, `TimedeltaIndex` or `PeriodIndex`.
7390
7390
fill_method : str, default None
7391
7391
Filling method for upsampling.
7392
7392
@@ -7402,16 +7402,16 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7402
7402
for all frequency offsets except for 'M', 'A', 'Q', 'BM',
7403
7403
'BA', 'BQ', and 'W' which all have a default of 'right'.
7404
7404
convention : {'start', 'end', 's', 'e'}, default 'start'
7405
- For `` PeriodIndex` ` only, controls whether to use the start or
7406
- end of `` rule` `.
7405
+ For `PeriodIndex` only, controls whether to use the start or
7406
+ end of `rule`.
7407
7407
kind : {'timestamp', 'period'}, optional, default None
7408
7408
Pass 'timestamp' to convert the resulting index to a
7409
- `` DateTimeIndex`` or 'period' to convert it to a `` PeriodIndex` `.
7409
+ `DateTimeIndex` or 'period' to convert it to a `PeriodIndex`.
7410
7410
By default the input representation is retained.
7411
7411
loffset : timedelta, default None
7412
7412
Adjust the resampled time labels.
7413
7413
limit : int, default None
7414
- Maximum size gap when reindexing with `` fill_method` `.
7414
+ Maximum size gap when reindexing with `fill_method`.
7415
7415
7416
7416
.. deprecated:: 0.18.0
7417
7417
base : int, default 0
@@ -7426,7 +7426,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7426
7426
7427
7427
level : str or int, optional
7428
7428
For a MultiIndex, level (name or number) to use for
7429
- resampling. `` level` ` must be datetime-like.
7429
+ resampling. `level` must be datetime-like.
7430
7430
7431
7431
.. versionadded:: 0.19.0
7432
7432
@@ -7446,6 +7446,8 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7446
7446
See Also
7447
7447
--------
7448
7448
groupby : Group by mapping, function, label, or list of labels.
7449
+ Series.resample : Resample a Series.
7450
+ DataFrame.resample: Resample a DataFrame.
7449
7451
7450
7452
Examples
7451
7453
--------
@@ -7544,10 +7546,10 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7544
7546
2000-01-01 00:06:00 26
7545
7547
Freq: 3T, dtype: int64
7546
7548
7547
- For a Series with a PeriodIndex, the keyword `` convention` ` can be
7549
+ For a Series with a PeriodIndex, the keyword `convention` can be
7548
7550
used to control whether to use the start or end of `rule`.
7549
7551
7550
- Resample a year by quarter using 'start' `` convention` `. Values are
7552
+ Resample a year by quarter using 'start' `convention`. Values are
7551
7553
assigned to the first quarter of the period.
7552
7554
7553
7555
>>> s = pd.Series([1, 2], index=pd.period_range('2012-01-01',
@@ -7568,7 +7570,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7568
7570
2013Q4 NaN
7569
7571
Freq: Q-DEC, dtype: float64
7570
7572
7571
- Resample quarters by month using 'end' `` convention` `. Values are
7573
+ Resample quarters by month using 'end' `convention`. Values are
7572
7574
assigned to the last month of the period.
7573
7575
7574
7576
>>> q = pd.Series([1, 2, 3, 4], index=pd.period_range('2018-01-01',
@@ -7593,7 +7595,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7593
7595
2018-12 4.0
7594
7596
Freq: M, dtype: float64
7595
7597
7596
- For DataFrame objects, the keyword ``on` ` can be used to specify the
7598
+ For DataFrame objects, the keyword `on ` can be used to specify the
7597
7599
column instead of the index for resampling.
7598
7600
7599
7601
>>> d = dict({'price': [10, 11, 9, 13, 14, 18, 17, 19],
@@ -7618,7 +7620,7 @@ def resample(self, rule, how=None, axis=0, fill_method=None, closed=None,
7618
7620
2018-01-31 10.75 62.5
7619
7621
2018-02-28 17.00 60.0
7620
7622
7621
- For a DataFrame with MultiIndex, the keyword `` level` ` can be used to
7623
+ For a DataFrame with MultiIndex, the keyword `level` can be used to
7622
7624
specify on which level the resampling needs to take place.
7623
7625
7624
7626
>>> days = pd.date_range('1/1/2000', periods=4, freq='D')
0 commit comments