pandas.Index.reindex

Index.reindex(target, method=None, level=None, limit=None, tolerance=None)[source]

Create index with target’s values.

Parameters
target:an iterable
Returns
new_index:pd.Index

Resulting index.

indexer:np.ndarray[np.intp] or None

Indices of output values in original index.

© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.Index.reindex.html