-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: Correct wrong doc string for MultiIndex.get_loc_level + added examples #17663
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: Correct wrong doc string for MultiIndex.get_loc_level + added examples #17663
Conversation
pandas/core/indexes/multi.py
Outdated
key : label or sequence of labels | ||
level : int/level name or list thereof, optional | ||
drop_level : bool, default True | ||
if ``False``, the output index will not be sliced. |
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.
can you make this a bit more clear
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.
Ok, new version
tiny comment |
8f6b9e5
to
3d8933c
Compare
Codecov Report
@@ Coverage Diff @@
## master #17663 +/- ##
=========================================
Coverage ? 91.24%
=========================================
Files ? 163
Lines ? 49806
Branches ? 0
=========================================
Hits ? 45446
Misses ? 4360
Partials ? 0
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #17663 +/- ##
=========================================
Coverage ? 91.24%
=========================================
Files ? 163
Lines ? 49806
Branches ? 0
=========================================
Hits ? 45446
Misses ? 4360
Partials ? 0
Continue to review full report at Codecov.
|
thanks! |
git diff upstream/master -u -- "*.py" | flake8 --diff
The doc string for MultiIndex.get_loc_level is currently wrong. This corrects that + adds some examples.