polars.Series.cummax¶
- Series.cummax(reverse: bool = False) polars.internals.series.Series ¶
Get an array with the cumulative max computed at every element.
- Parameters
- reverse
reverse the operation.
Examples
>>> s = pl.Series("a", [3, 5, 1]) >>> s.cummax() shape: (3,) Series: 'a' [i64] [ 3 5 5 ]