polars.Series.cum_max
-
Get an array with the cumulative max computed at every element.
- Parameters:
-
- reverse
-
reverse the operation.
Examples
>>> s = pl.Series("s", [3, 5, 1]) >>> s.cum_max() shape: (3,) Series: 's' [i64] [ 3 5 5 ]
Series.cum_max(
*,
reverse: bool = False,
) → Series
© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/series/api/polars.Series.cum_max.html