@@ -3769,24 +3769,25 @@ def reindex(self, target, method=None, level=None, limit=None, tolerance=None):
3769
3769
----------
3770
3770
target : an iterable
3771
3771
method : {None, ‘backfill’/’bfill’, ‘pad’/’ffill’, ‘nearest’}
3772
- Method to use for filling holes in reindexed DataFrame.
3773
- Please note: this is only applicable to DataFrames/Series
3772
+ Method to use for filling holes in reindexed DataFrame.
3773
+ Please note: this is only applicable to DataFrames/Series
3774
3774
with a monotonically increasing/decreasing index.
3775
3775
- None (default): don’t fill gaps
3776
3776
- pad / ffill: Propagate last valid observation forward to next valid.
3777
3777
- backfill / bfill: Use next valid observation to fill gap.
3778
3778
- nearest: Use nearest valid observations to fill gap.
3779
3779
level : int or name
3780
- Broadcast across a level, matching Index values on the passed MultiIndex level.
3780
+ Broadcast across a level, matching Index values on
3781
+ the passed MultiIndex level.
3781
3782
limit : int, default None
3782
3783
Maximum number of consecutive elements to forward or backward fill.
3783
3784
tolerance : optional
3784
- Maximum distance between original and new labels for inexact matches.
3785
+ Maximum distance between original and new labels for inexact matches.
3785
3786
The values of the index at the matching locations most satisfy the
3786
3787
equation `abs(index[indexer] - target) <= tolerance`.
3787
- Tolerance may be a scalar value, which applies the same tolerance to all values,
3788
- or list-like, which applies variable tolerance per element.
3789
- List-like includes list, tuple, array, Series, and must be the same size
3788
+ Tolerance may be a scalar value, which applies the same tolerance
3789
+ to all values, or list-like, which applies variable tolerance per element.
3790
+ List-like includes list, tuple, array, Series, and must be the same size
3790
3791
as the index and its dtype must exactly match the index’s type.
3791
3792
3792
3793
Returns
@@ -3796,7 +3797,6 @@ def reindex(self, target, method=None, level=None, limit=None, tolerance=None):
3796
3797
indexer : np.ndarray or None
3797
3798
Indices of output values in original index.
3798
3799
3799
-
3800
3800
Examples
3801
3801
--------
3802
3802
>>> index = ['a', 'b', 'c', 'd']
0 commit comments