-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Add tuple description to allowed inputs for iloc #47799 #47989
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
Conversation
pratikpatel2512
commented
Aug 6, 2022
•
edited
Loading
edited
- closes DOC: iloc docs should indicate a tuple is valid #47799
- All code checks passed.
pandas/core/indexing.py
Outdated
@@ -155,6 +155,8 @@ def iloc(self) -> _iLocIndexer: | |||
DataFrame) and that returns valid output for indexing (one of the above). | |||
This is useful in method chains, when you don't have a reference to the | |||
calling object, but would like to base your selection on some value. | |||
- A tuple of row and column indexes, e.g. ``0, 1`` or ``[1, 2], [2, 5]`` or |
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.
Maybe add that the tuple elements consist of one of the above mentioned ones instead of given examples
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.
Also I would add the parentheses to make it explit they are tuples. e,g, ([1,2], [2,5])
.
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.
Acknowledged the comments and updated the statement.
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.
Are we suppose to run around 30 some checks for document updates?
bb78f2c
to
f0b3356
Compare
Thanks @pratikpatel2512 |
pandas-dev#47989) DOC: Add tuple description to allowed inputs for iloc