A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pandas.pydata.org/pandas-docs/stable/reference/api/../api/pandas.Index.max.html below:

pandas.Index.max — pandas 2.3.1 documentation

pandas.Index.max#
Index.max(axis=None, skipna=True, *args, **kwargs)[source]#

Return the maximum value of the Index.

Parameters:
axisint, optional

For compatibility with NumPy. Only 0 or None are allowed.

skipnabool, default True

Exclude NA/null values when showing the result.

*args, **kwargs

Additional arguments and keywords for compatibility with NumPy.

Returns:
scalar

Maximum value.

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
>>> 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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4