pandas 1.4.2

ParametersReturns
max(self, axis=None, skipna: 'bool' = True, *args, **kwargs)

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, **kwargs :

Additional arguments and keywords for compatibility with NumPy.

Returns

scalar

Maximum value.

Return the maximum value of the Index.

See Also

DataFrame.max

Return the maximum values in a DataFrame.

Index.min

Return the minimum value in an Index.

Series.max

Return the maximum value in a Series.

Examples

This example is valid syntax, but we were not able to check execution
>>> idx = pd.Index([3, 2, 1])
... idx.max() 3
This example is valid syntax, but we were not able to check execution
>>> idx = pd.Index(['c', 'b', 'a'])
... idx.max() 'c'

For a MultiIndex, the maximum is determined lexicographically.

This example is valid syntax, but we were not able to check execution
>>> idx = pd.MultiIndex.from_product([('a', 'b'), (2, 1)])
... idx.max() ('b', 2)
See :

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /pandas/core/base.py#549
type: <class 'function'>
Commit: