DEPR: Series and Index shouldn't do inference on pandas objects #56012
Labels
Deprecate
Functionality to remove in pandas
Needs Discussion
Requires discussion from core team before further action
The following changes the dtype, which is unexpected:
this returns
datetime64[ns]
Doing inference on a pandas object is pretty weird, this makes stuff very complicated with the new string option. Set_Index can change the dtype, e.g.
Users can just call infer_objects if they want to do inference. We should keep the inference logic for non-pandas objects
cc @jbrockmendel
The text was updated successfully, but these errors were encountered: