Skip to content

Commit a107468

Browse files
committed
DOC: Fix validation error RT01 for itertuples function (pandas-dev#25356)
Change yield to return
1 parent dd105a6 commit a107468

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/core/frame.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -839,12 +839,12 @@ def itertuples(self, index=True, name="Pandas"):
839839
The name of the returned namedtuples or None to return regular
840840
tuples.
841841
842-
Yields
842+
Returns
843843
-------
844-
collections.namedtuple
845-
Yields a namedtuple for each row in the DataFrame with the first
846-
field possibly being the index and following fields being the
847-
column values.
844+
iterator
845+
An object to iterate over namedtuples for each row in the
846+
DataFrame with the first field possibly being the index and
847+
following fields being the column values.
848848
849849
See Also
850850
--------

0 commit comments

Comments
 (0)