larray.Axis.max¶
-
Axis.
max
() → Any[source]¶ Get maximum of labels.
Returns: - label
Label with maximum value.
Warning
Fails on non-numeric labels.
Examples
>>> time = Axis('time=1991..2020') >>> time.max() 2020
>>> country = Axis('country=Belgium,France,Germany') >>> country.max() Traceback (most recent call last): ... TypeError: cannot perform reduce with flexible type