Skip to content

Commit 8ae4358

Browse files
mortadajreback
authored andcommitted
DOC: Fix typos in Series.idxmin/idxmax docs (#21757)
1 parent 3cfb291 commit 8ae4358

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pandas/core/series.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -1657,7 +1657,7 @@ def duplicated(self, keep='first'):
16571657
"""
16581658
return super(Series, self).duplicated(keep=keep)
16591659

1660-
def idxmin(self, axis=None, skipna=True, *args, **kwargs):
1660+
def idxmin(self, axis=0, skipna=True, *args, **kwargs):
16611661
"""
16621662
Return the row label of the minimum value.
16631663
@@ -1673,7 +1673,7 @@ def idxmin(self, axis=None, skipna=True, *args, **kwargs):
16731673
For compatibility with DataFrame.idxmin. Redundant for application
16741674
on Series.
16751675
*args, **kwargs
1676-
Additional keywors have no effect but might be accepted
1676+
Additional keywords have no effect but might be accepted
16771677
for compatibility with NumPy.
16781678
16791679
Returns
@@ -1742,7 +1742,7 @@ def idxmax(self, axis=0, skipna=True, *args, **kwargs):
17421742
For compatibility with DataFrame.idxmax. Redundant for application
17431743
on Series.
17441744
*args, **kwargs
1745-
Additional keywors have no effect but might be accepted
1745+
Additional keywords have no effect but might be accepted
17461746
for compatibility with NumPy.
17471747
17481748
Returns
@@ -1802,14 +1802,14 @@ def idxmax(self, axis=0, skipna=True, *args, **kwargs):
18021802
msg=dedent("""\
18031803
'argmin' is deprecated, use 'idxmin' instead. The behavior of 'argmin'
18041804
will be corrected to return the positional minimum in the future.
1805-
Use 'series.values.argmin' to get the position of the minimum now.""")
1805+
Use 'series.values.argmin' to get the position of the minimum row.""")
18061806
)
18071807
argmax = deprecate(
18081808
'argmax', idxmax, '0.21.0',
18091809
msg=dedent("""\
18101810
'argmax' is deprecated, use 'idxmax' instead. The behavior of 'argmax'
18111811
will be corrected to return the positional maximum in the future.
1812-
Use 'series.values.argmax' to get the position of the maximum now.""")
1812+
Use 'series.values.argmax' to get the position of the maximum row.""")
18131813
)
18141814

18151815
def round(self, decimals=0, *args, **kwargs):

0 commit comments

Comments
 (0)