-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: clarify idxmax behaviour issue #18206 #18209
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: clarify idxmax behaviour issue #18206 #18209
Conversation
pandas/core/indexes/multi.py
Outdated
@@ -811,7 +811,9 @@ def duplicated(self, keep='first'): | |||
|
|||
@Appender(ibase._index_shared_docs['fillna']) |
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.
should this line be removed?
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.
I don't think so. That appends additional documentation.
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.
Ah, but I see #18018. In that case, leave this alone for this PR. Make the change in a subsequent PR.
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.
Moved fillna
changes to PR #18269 .
Codecov Report
@@ Coverage Diff @@
## master #18209 +/- ##
==========================================
- Coverage 91.4% 91.38% -0.02%
==========================================
Files 163 164 +1
Lines 50064 49883 -181
==========================================
- Hits 45759 45586 -173
+ Misses 4305 4297 -8
Continue to review full report at Codecov.
|
pandas/core/indexes/multi.py
Outdated
@@ -811,7 +811,9 @@ def duplicated(self, keep='first'): | |||
|
|||
@Appender(ibase._index_shared_docs['fillna']) | |||
def fillna(self, value=None, downcast=None): | |||
# isna is not implemented for MultiIndex | |||
""" | |||
isna is not implemented for MultiIndex |
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.
isna -> fillna
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.
@jorisvandenbossche please see PR #18269 for changes related to fillna
.
pandas/core/series.py
Outdated
@@ -1336,7 +1336,8 @@ def idxmax(self, axis=None, skipna=True, *args, **kwargs): | |||
Parameters | |||
---------- | |||
skipna : boolean, default True | |||
Exclude NA/null values | |||
Exclude NA/null values. If an entire row/column is NA, the result |
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.
"an entire row/column" -> "the entire Series"
@ghasemnaddaf Thanks! Could you also add a 'Raises' section in the idxmin/idxmax docstring to say that it raises a ValueError when for empty rows/columns ? |
added |
@ghasemnaddaf Thanks! |
(cherry picked from commit 63e8527)
git diff upstream/master -u -- "*.py" | flake8 --diff