pandas.DataFrame.iterrows

pandas 3.1.1 · DataFrame · method

Iterate over DataFrame rows as index–Series pairs. A returned row can be coerced to a shared dtype.

Call syntax

DataFrame.iterrows()

Run the example

Edit the example and select Run Python to see the result.

Parameters

This call takes no arguments.

Returns

Iterable[tuple[Hashable, Series]]