pandas.DataFrame.itertuples
pandas 3.1.1 · DataFrame · method
Iterate over DataFrame rows as tuples, optionally including index values.
Call syntax
DataFrame.itertuples(index=True, name='Pandas')Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
index |
Optional Positional or keyword Default True |
bool Supply row labels or control how existing row labels are used. |
name |
Optional Positional or keyword Default 'Pandas' |
str or None Set a name or identify the named object used by the operation. |
Returns
iterator