SciPy

scipy.stats.mstats.trimmed_mean

scipy.stats.mstats.trimmed_mean(a, limits=(0.1, 0.1), inclusive=(1, 1), relative=True, axis=None)[source]