diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 0d0e186b15c54..d5b273f37a3a2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -782,8 +782,8 @@ def iteritems(self): r""" Iterator over (column name, Series) pairs. - Iterates over the DataFrame columns, returning a tuple with the column name - and the content as a Series. + Iterates over the DataFrame columns, returning a tuple with + the column name and the content as a Series. Yields ------ @@ -794,8 +794,10 @@ def iteritems(self): See Also -------- - DataFrame.iterrows : Iterate over DataFrame rows as (index, Series) pairs. - DataFrame.itertuples : Iterate over DataFrame rows as namedtuples of the values. + DataFrame.iterrows : Iterate over DataFrame rows as + (index, Series) pairs. + DataFrame.itertuples : Iterate over DataFrame rows as namedtuples + of the values. Examples --------