pandas.DatetimeIndex.get_indexer_non_unique

DatetimeIndex.get_indexer_non_unique(target, **kwargs)

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