Skip to content

DOC: Multi-conditional examples added to .loc docstring #53572

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 7 commits into from
Jun 12, 2023

Conversation

sweisss
Copy link
Contributor

@sweisss sweisss commented Jun 9, 2023

Adds two examples of using .loc with multiple conditions and links to Boolean Indexing user guide.

NOTE: I was unable to get the documentation to build on my computer so I could not view the changes before opening this PR. I will have to view them by trying the /preview comment.

@mroeschke
Copy link
Member

Also please ensure you are running pre commit on your code changes https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit

@mroeschke mroeschke added the Docs label Jun 9, 2023
Copy link

@salujaditi14 salujaditi14 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include it in documentation : Ensure having brackets "()" around each condition

@mroeschke mroeschke added this to the 2.1 milestone Jun 12, 2023
@mroeschke mroeschke merged commit d7af4db into pandas-dev:main Jun 12, 2023
@mroeschke
Copy link
Member

Thanks @sweisss

@sweisss sweisss deleted the loc-doc-update branch June 12, 2023 18:44
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
…3572)

* Add multi-conditional examples in loc docstring

* Update boolean operators in example descriptions

* Update note on advanced indexing

* Add point to wrap conditionals in parens.
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.

DOC: Add multi-conditional example to .loc reference page.
3 participants