title: Median of pandas dataframe column
body: <p>I have a DataFrame <code>df</code>:</p>
  <pre><code>name   count    
  aaaa   2000    
  bbbb   1900    
  cccc    900    
  dddd    500    
  eeee    100
  </code></pre>
  <p>I would like to look at the rows that are within a factor of 10 from the median of the <code>count</code> column.</p>
  <p>I tried <code>df['count'].median()</code> and got the median. But don't know how to proceed further. Can you suggest how I could use pandas/numpy for this.</p>
  <p>Expected Output :</p>
  <pre><code>name count distance from median
  
  aaaa  2000   *****
  </code></pre>
  <p>I can use any measure as the distance from median (absolute deviation from median, quantiles etc.).</p>