Skip to content

DOC: Clarify loc and iloc functionality in user_guide/indexing.html #60501

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

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

bluestarunderscore
Copy link
Contributor

This PR fixes the incorrect description of iloc and adds a brief comparison to loc to make the warning more clear:

"While loc supports two kinds of boolean indexing, iloc only supports indexing with a boolean array."

@mroeschke mroeschke added the Docs label Jan 2, 2025
@mroeschke mroeschke added this to the 3.0 milestone Jan 2, 2025
@mroeschke mroeschke merged commit 990474b into pandas-dev:main Jan 2, 2025
21 of 22 checks passed
@mroeschke
Copy link
Member

Thanks @bluestarunderscore

gmcrocetti pushed a commit to gmcrocetti/pandas that referenced this pull request Jan 3, 2025
…andas-dev#60501)

* Fix iloc wording error on indexing user guide page

* Update doc/source/user_guide/indexing.rst

---------

Co-authored-by: Matthew Roeschke <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants