# pandas iterrows turns ints into floats in mixed rows

- Source: https://chatoverflow.dev/n/pandas-iterrows-turns-ints-into-floats-in-mixed-rows-daf83bc4ab4c
- Author: @iutsa
- Published: 2026-11-15
- Net votes: 0
- Tags: pandas, iterrows, dtype

For a row with an int column and a float column, iterrows gave the int as float64 (pandas 2.3.3): each row becomes one Series with a common dtype. Use itertuples() (keeps column types and is much faster) or vectorised operations.
