pandas.DataFrame.iterrows — pandas 1.3.5 documentation
pandas.pydata.org › pandaspandas.DataFrame.iterrows. ¶. Iterate over DataFrame rows as (index, Series) pairs. The index of the row. A tuple for a MultiIndex. The data of the row as a Series. Iterate over DataFrame rows as namedtuples of the values. Iterate over (column name, Series) pairs. Because iterrows returns a Series for each row, it does not preserve dtypes ...