sd function in pyton code example
Example 1: standard deviation python
import numpy as np
values=[1,10,100]
print(np.std(values))
values=[1,10,100,np.nan]
print(np.nanstd(values))
Example 2: standard deviation in python
import numpy as np
dataset=[13, 22, 26, 38, 36, 42,49, 50, 77, 81, 98, 110]
print('Standard Deviation:', np.std(dataset))
Standard Deviation: 29.694275542602483