You are viewing documentation about an older version (1.21.0). View latest version

modin.pandas.Series.idxmax¶

Series.idxmax(axis=0, skipna=True, *args, **kwargs)[source]¶

Return the row label of the maximum value.

Parameters:
  • axis ({0 or 'index'}) – Unused. Parameter needed for compatibility with DataFrame.

  • skipna (bool, default True) – Exclude NA/null values. If an entire Series is NA, the result will be NA.

  • *args – Additional arguments and keywords have no effect but might be accepted for compatibility with NumPy.

  • **kwargs – Additional arguments and keywords have no effect but might be accepted for compatibility with NumPy.

Return type:

Index, the label of the maximum value.

Examples

>>> s = pd.Series(data=[1, None, 4, 3, 4],
...               index=['A', 'B', 'C', 'D', 'E'])
>>> s.idxmax()
'C'
Copy