Skip to content

Commit 55fd070

Browse files
author
Ghasem Naddaf
committed
DOC: clarify idxmax behaviour issue pandas-dev#18206
1 parent ca737ac commit 55fd070

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5812,7 +5812,7 @@ def idxmax(self, axis=0, skipna=True):
58125812
0 or 'index' for row-wise, 1 or 'columns' for column-wise
58135813
skipna : boolean, default True
58145814
Exclude NA/null values. If an entire row/column is NA, the result
5815-
will be first index.
5815+
will be NA.
58165816
58175817
Returns
58185818
-------

pandas/core/series.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,8 @@ def idxmax(self, axis=None, skipna=True, *args, **kwargs):
13361336
Parameters
13371337
----------
13381338
skipna : boolean, default True
1339-
Exclude NA/null values
1339+
Exclude NA/null values. If an entire row/column is NA, the result
1340+
will be NA.
13401341
13411342
Returns
13421343
-------

0 commit comments

Comments
 (0)