-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Remove confusing description from core.DataFrame.iterrows
#37331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Remove confusing description from core.DataFrame.iterrows
#37331
Conversation
8f40a4f
to
2e9c615
Compare
pandas/core/frame.py
Outdated
@@ -971,8 +971,6 @@ def iterrows(self) -> Iterable[Tuple[Label, Series]]: | |||
data : Series | |||
The data of the row as a Series. | |||
|
|||
it : generator | |||
A generator that iterates over the rows of the frame. | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please remove one of the empty rows? Double emtpy rows are not allowed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay! Thx for your review. I'll fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
Edit: The failure is unrelated
lgtm whenever green. not sure CI failure was related but restarted in any case |
Thanks @TKNGUE ! |
Current

core.DataFrame.iterrows
is as followsHowever,
core.DataFrame.iterrows
actually returns an iterator which yields(index, data)
, not(index, data, it)
.This PRs remove such confusing description like [https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.iteritems.html?highlight=yields]
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff