polars.Series.rolling_skew#

Series.rolling_skew(window_size: int, bias: bool = True) Series[source]#

Compute a rolling skew.

Parameters:
window_size

Integer size of the rolling window.

bias

If False, the calculations are corrected for statistical bias.

Examples

>>> s = pl.Series("a", [1.0, 2.0, 3.0, 4.0, 6.0, 8.0])
>>> s.rolling_skew(window_size=3)
shape: (6,)
Series: 'a' [f64]
[
        null
        null
        0.0
        0.0
        0.381802
        0.0
]