pandas.Index.get_indexer_non_unique

Index.get_indexer_non_unique(target)[source]

return an indexer suitable for taking from a non unique index return the labels in the same order as the target, and return a missing indexer into the target (missing are marked as -1 in the indexer); target must be an iterable