modin.pandas.Series.idxmax

Series.idxmax(axis=0, skipna=True, *args, **kwargs) Hashable[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/.tox/docs/lib/python3.9/site-packages/modin/pandas/series.py#L1225-L1231)

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
Language: English