rolling std dev of a pandas series

Solutions on MaxInterview for rolling std dev of a pandas series by the best coders in the world

showing results for - "rolling std dev of a pandas series"
Ariana
22 Aug 2019
1>>> s = pd.Series([5, 5, 6, 7, 5, 5, 5])
2>>> s.rolling(3).std()
30         NaN
41         NaN
52    0.577350
63    1.000000
74    1.000000
85    1.154701
96    0.000000
10dtype: float64
11
similar questions
queries leading to this page
rolling std dev of a pandas series