pandas.Index.get_indexer_for
pandas 3.1.1 · Index objects · method
Find positions for the requested labels even when this index contains duplicates.
Call syntax
Index.get_indexer_for(target)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
target |
Required Positional or keyword |
Index Supply the labels to align or match against. |
Returns
np.ndarray[np.intp]