SciPy - Stats - Tutorialspoint
https://www.tutorialspoint.com/scipy/scipy_stats.htmSeveral of these functions have a similar version in the scipy.stats.mstats, which work for masked arrays. Let us understand this with the example given below. from scipy import stats import numpy as np x = np.array( [1,2,3,4,5,6,7,8,9]) print x.max(),x.min(),x.mean(),x.var() The above program will generate the following output.