[BUG] Scalar loc-based lookup in integer categorical indices is incorrect #13653
Labels
2 - In Progress
Currently a work in progress
bug
Something isn't working
Python
Affects Python cuDF API.
Milestone
Describe the bug
loc
-based lookup does (I think incorrect) fallback to positional indexing rather than label-based lookup when the index is a categorical one with integer values.Steps/Code to reproduce bug
Expected behavior
Annoyingly, one can't just stop doing positional indexing fallback in all cases because if the index is (say) a string index then integer indexing does fall back to positional.This is forSeries.__getitem__
and the behaviour is deprecated in pandas 2.The text was updated successfully, but these errors were encountered: