When appending a dataframe to another with df.append the column dtypes change unexpectedly at times. An example of this is below, showing that the boolean columns have been changed to bool. This same issue happens if the original dataframes are Int64 - the new dataframe will have those columns changed to int64.
I would expect that the output dtype would not change if the input dataframe dtypes were the same for a given column.
When appending a dataframe to another with
df.append
the column dtypes change unexpectedly at times. An example of this is below, showing that theboolean
columns have been changed tobool
. This same issue happens if the original dataframes areInt64
- the new dataframe will have those columns changed toint64
.I would expect that the output dtype would not change if the input dataframe dtypes were the same for a given column.