polars.Series.max#

Series.max() → PythonLiteral | None[source]#

Get the maximum value in this Series.

Null values are ignored, and so are NaN values of a float column. Values of a nested dtype (List, Array, Struct and Map) compare in the order sort() puts them in, where NaN is larger than any other number.

Examples

>>> s = pl.Series("a", [1, 2, 3])
>>> s.max()
3