iter_rows
iter_rows(
df: DataFrame ,
row_type: type[None] ,
)-> ‘Iterator[_RowType]’
Iterate over a dataframe’s rows as named tuples of a known shape.
Parameters
| Parameter | Description |
|---|---|
| df | The dataframe to iterate. |
| row_type |
A NamedTuple describing the columns for readers and type checkers; it is never instantiated. Pandas builds the tuples and omits the index so fields align with columns. |