BUG: Pandas changes dtypes of columns when no float (or other) assignments are done to this column #34573
Labels
Bug
Dtype Conversions
Unexpected or buggy dtype conversions
Indexing
Related to indexing on series/frames, not to indexes themselves
Milestone
Problem description
In the above example, pandas changes the dtype of the column
a
of dataframedf
from int64 to float64, while there is no operation, that assigns non-integer value to this column.Expected Output
Currently, the output of this code is:
while the expected one is:
pd.show_versions() output
The text was updated successfully, but these errors were encountered: