rolling_skewnessΒΆ

Defined in fynance.features.indicators

rolling_skewness(X, w=21, axis=0, dtype=None)[source]

Rolling sample skewness over a strictly-past window w.

Parameters:
Xnp.ndarray[dtype, ndim=1 or 2]

Input series.

wint, optional

Rolling window. Default 21.

axis{0, 1}, optional

Axis of computation. Default 0.

dtypenp.dtype, optional

Output dtype.

Returns:
np.ndarray[dtype, ndim=1 or 2]

Rolling skewness (0 where fewer than 3 observations are available).