pandas / 0.25.0 / reference / api / pandas.index.get_indexer_for.html /

pandas.Index.get_indexer_for

Index.get_indexer_for(self, target, **kwargs) [source]

Guaranteed return of an indexer even when non-unique.

This dispatches to get_indexer or get_indexer_nonunique as appropriate.

Returns:
numpy.ndarray

List of indices.

© 2008–2012, 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/0.25.0/reference/api/pandas.Index.get_indexer_for.html