Weighted standard deviation in NumPy Weighted standard deviation in NumPy python python