mean and std python 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 numpy
a = [1,2,3,4,5]
numpy.std(a) # will give the standard deviation of a