API: idx.get_indexer(keys) fails if idx is non-unique, even if keys in idx are unique #38773
Labels
API Design
Bug
Index
Related to the Index class or subclasses
Needs Discussion
Requires discussion from core team before further action
Code Sample, a copy-pastable example
Came across this here: #38745 (comment)
Problem description
It makes sense to me why this would error:
There isn't a unique solution. For the case presented at the top, there is a unique solution.
Expected Output
Note, this is the behaviour of
pd.Index._get_indexer
onmaster
Output of
pd.show_versions()
master
1.2.0
pd.show_versions()
is failing with:ImportError: Can't determine version for numba
, so here'sconda list
:The text was updated successfully, but these errors were encountered: