pandas.DataFrame.__iter__

pandas 3.1.1 · DataFrame · method

Support iteration, yielding columns for a DataFrame or key–object pairs for GroupBy.

Call syntax

DataFrame.__iter__()

Run the example

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

Parameters

This call takes no arguments.

Returns

iterator