pandas.Index.reindex

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

Create index with target’s values (move/add/delete values as necessary).

Parameters:
target : an iterable
Returns:
new_index : pd.Index

Resulting index.

indexer : np.ndarray or None

Indices of output values in original index.

Scroll To Top