polars.Series.cum_max
-
Получить массив с накопительным максимумом, вычисленным для каждого элемента.
- Параметры:
-
- reverse
-
выполнить операцию в обратном порядке.
Примеры
>>> 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