TimedeltaIndex.get_indexer()
pandas.TimedeltaIndex.get_indexer
-
TimedeltaIndex.get_indexer(target, method=None, limit=None, tolerance=None)
-
Compute indexer and mask for new index given the current index. The indexer should be then used as an input to ndarray.take to align the current data to the new index.
Parameters: target : Index
method : {None, ‘pad’/’ffill’, ‘backfill’/’bfill’, ‘nearest’}, optional
- default: exact matches only.
- pad / ffill: find the PREVIOUS index value if no exact match.
- backfill / bfill: use NEXT index value if no exact match
- nearest: use the NEAREST