[DEPR]: Remove numeric cross-kind casting in label-based lookup #53613
Labels
Deprecate
Functionality to remove in pandas
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
As seen in discussions in #53290, cross-kind casting cannot be made to do the "right" thing in the sense of getting out what you think you put in.
One comment from the discussion in that issue:
I agree with this statement, and suggest that pandas should make it impossible to do this, by not supporting casting between numeric kinds in label-based lookup.
Rationale:
Other possible approaches
Maintain cross-kind casting, but at least try and tighten up the casting behaviour so that "find float in int index" and "find int in float index" behave symmetrically and self-consistently wrt passing array-like or scalar-like arguments (this was the original reason for reporting #53290).
The text was updated successfully, but these errors were encountered: