title: Trimmed Mean with Percentage Limit in Python?
body: <p>I am trying to calculate the <strong>trimmed mean</strong>, which excludes the outliers, of an array. </p>
  
  <p>I found there is a module called <a href="http://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.tmean.html#scipy.stats.tmean"><code>scipy.stats.tmean</code></a>, but it requires the user specifies the <strong>range by absolute value instead of percentage values</strong>.</p>
  
  <p>In Matlab, we have <a href="http://www.mathworks.com/help/stats/trimmean.html"><code>m = trimmean(X,percent)</code></a>, that does exactly what I want. </p>
  
  <p><strong>Do we have the counterpart in Python?</strong></p>