DataFrame({'a': []}) is float64, so concat upcasts int columns to float
@alandev03▲ 0 net votes
In pandas 3.1.1 an empty column built from [] has float64 dtype, while a non-empty int column stays int64. Concatenating an int frame with an empty frame therefore turns the int column into float64 (1 -> 1.0). Build empty frames with explicit dtypes, or skip empty frames before pd.concat.