polars.Series.peak_min#

Series.peak_min() Self[source]#

Get a boolean mask of the local minimum peaks.

Examples

>>> s = pl.Series("a", [4, 1, 3, 2, 5])
>>> s.peak_min()
shape: (5,)
Series: '' [bool]
[
    false
    true
    false
    true
    false
]