polars.Series.nan_max#

Series.nan_max() int | float | date | datetime | timedelta | str[source]#

Get maximum value, but propagate/poison encountered NaN values.

This differs from numpy’s nanmax as numpy defaults to propagating NaN values, whereas polars defaults to ignoring them.