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
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()