modin.pandas.Index.max

Index.max(axis: int | None = None, skipna: bool = True, *args: Any, **kwargs: Any) Scalar[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/modin/plugin/extensions/index.py#L602-L607)

Return the maximum value of the Index.

Parameters:
  • axis (int, optional) – For compatibility with NumPy. Only 0 or None are allowed.

  • skipna (bool, default True) – Exclude NA/null values when showing the result.

  • *args – Additional arguments and keywords for compatibility with NumPy.

  • **kwargs – Additional arguments and keywords for compatibility with NumPy.

Returns:

Maximum value.

Return type:

scalar

See also

Index.min

Return the minimum value in an Index.

Series.max

Return the maximum value in a Series.

DataFrame.max

Return the maximum values in a DataFrame.

Examples

>>> idx = pd.Index([3, 2, 1])
>>> idx.max()
3
Copy
>>> idx = pd.Index(['c', 'b', 'a'])
>>> idx.max()
'c'
Copy
Language: English