polars.Series.cummin#

Series.cummin(*, reverse: bool = False) Series[source]#

Get an array with the cumulative min computed at every element.

Parameters:
reverse

reverse the operation.

Examples

>>> s = pl.Series("s", [1, 2, 3])
>>> s.cummin()
shape: (3,)
Series: 's' [i64]
[
    1
    1
    1
]