API: Index.insert too much dtype inference #51363
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Index
Related to the Index class or subclasses
ATM Index.insert uses
Index._with_infer
to construct a result, which will cast the case here to int64 instead of retaining object. I think in this case it would be more reasonable to keep object dtype, which we'd get by just callingIndex.__new__
instead of _with_infer.We have no tests that depend on this ATM.
The text was updated successfully, but these errors were encountered: