Skip to content

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

Merged
merged 4 commits into from
Nov 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5781,7 +5781,12 @@ def idxmin(self, axis=0, skipna=True):
0 or 'index' for row-wise, 1 or 'columns' for column-wise
skipna : boolean, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be NA
will be NA.

Raises
------
ValueError
* If the row/column is empty

Returns
-------
Expand Down Expand Up @@ -5812,7 +5817,12 @@ def idxmax(self, axis=0, skipna=True):
0 or 'index' for row-wise, 1 or 'columns' for column-wise
skipna : boolean, default True
Exclude NA/null values. If an entire row/column is NA, the result
will be first index.
will be NA.

Raises
------
ValueError
* If the row/column is empty

Returns
-------
Expand Down
16 changes: 14 additions & 2 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,13 @@ def idxmin(self, axis=None, skipna=True, *args, **kwargs):
Parameters
----------
skipna : boolean, default True
Exclude NA/null values
Exclude NA/null values. If the entire Series is NA, the result
will be NA.

Raises
------
ValueError
* If the Series is empty

Returns
-------
Expand Down Expand Up @@ -1336,7 +1342,13 @@ def idxmax(self, axis=None, skipna=True, *args, **kwargs):
Parameters
----------
skipna : boolean, default True
Exclude NA/null values
Exclude NA/null values. If the entire Series is NA, the result
will be NA.

Raises
------
ValueError
* If the Series is empty

Returns
-------
Expand Down