pandas.Index.get_indexer_for — pandas 1.0.1 documentation (original) (raw)

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_non_unique as appropriate.

Returns

numpy.ndarray

List of indices.