Return the maximum value of the Index.
For compatibility with NumPy. Only 0 or None are allowed.
Exclude NA/null values when showing the result.
Additional arguments and keywords for compatibility with NumPy.
Maximum value.
See also
Index.minReturn the minimum value in an Index.
Series.maxReturn the maximum value in a Series.
DataFrame.maxReturn the maximum values in a DataFrame.
Examples
>>> idx = pd.Index([3, 2, 1])
>>> idx.max()
3
>>> idx = pd.Index(['c', 'b', 'a'])
>>> idx.max()
'c'
For a MultiIndex, the maximum is determined lexicographically.
>>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)])
>>> idx.max()
('b', 2)
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Index.max.html