pd.Index.get_loc
¶
pandas.Index.get_loc(key, method=None, tolerance=None)
Note
Should be about as fast as standard python, maybe slightly slower.
Unsupported Index Types
- CategoricalIndex
- MultiIndex
- IntervalIndex
Supported Arguments¶
key
: must be of same type as the index
Important
- Only works for index with unique values (scalar return).
- Only works with replicated Index