1import numpy as np
2dataset=[13, 22, 26, 38, 36, 42,49, 50, 77, 81, 98, 110]
3print('Standard Deviation:', np.std(dataset))
4
5Standard Deviation: 29.694275542602483
1import numpy as np
2data = [68,86,36,57,24,46,32,53] #define some data
3data_std = np.std(data) #outputs 19.00493356999703
1import numpy as np
2values=[1,10,100]
3print(np.std(values))
4values=[1,10,100,np.nan]
5print(np.nanstd(values))
1import panda as pd
2df = pd.DataFrame(data)
3window=5
4running_vol=df['x'].rolling(window).std()