Datatype of Integer changes depending on indexing method on a dataframe with an integer and a float column #14205
Labels
Dtype Conversions
Unexpected or buggy dtype conversions
Duplicate Report
Duplicate issue or pull request
Indexing
Related to indexing on series/frames, not to indexes themselves
Take a dataframe that has one integer and one float column, then use various methods to get the first integer element. In certain cases the datatype will be given back correctly as int64, in other cases however it's changed to float64. Indexing using ix even does both, depending on how it is used:
Expected Output
output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: