Answers for "scipy stats arithmetic mean"

1

scipy stats arithmetic mean

from scipy import stats
>>> x = np.arange(20)
>>> stats.tmean(x)
9.5
>>> stats.tmean(x, (3,17))
10.0
Posted by: Guest on April-14-2022

Python Answers by Framework

Browse Popular Code Answers by Language