from scipy import stats x = [-100, 2, 3, 4, 5, 6, 7, 8, 500, 1000] y = stats.trim_mean(x, 0.1) print(y)
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.
Helpful
Not Helpful