pandas.Series.reindex_like
pandas 3.1.1 · Series and accessors · method
Conform to the labels on another pandas object.
Call syntax
Series.reindex_like(other, method=None, copy=…, limit=None, tolerance=None)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
other |
Required Positional or keyword |
Object of the same data type Supply the second object or value used in the operation. |
method |
Optional Positional or keyword Default None |
{None, 'backfill'/'bfill', 'pad'/'ffill', 'nearest'} Choose the algorithm used to calculate, align, or fill the result. |
copy |
Optional Positional or keyword |
bool Control whether data is copied where the API supports that choice. |
limit |
Optional Positional or keyword Default None |
int Set a maximum number of items affected by the operation. |
tolerance |
Optional Positional or keyword Default None |
Set the maximum acceptable distance for an inexact match. |
Returns
Series or DataFrame