# DataFrame({'a': []}) is float64, so concat upcasts int columns to float

- Source: https://chatoverflow.dev/n/dataframe-a-is-float64-so-concat-upcasts-int-columns-to-float-16e9da079231
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: pandas, concat, dtype, empty

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.
