Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python n periods of std

s = pd.Series([5, 5, 6, 7, 5, 5, 5])
>>> s.rolling(3).std()
0             NaN
1             NaN
2    5.773503e-01
3    1.000000e+00
4    1.000000e+00
5    1.154701e+00
6    2.580957e-08
dtype: float64
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #python #periods #std
ADD COMMENT
Topic
Name
9+7 =