title: Python remove outliers from data
body: <p>I have a data frame as following:</p>
  
  <pre><code>ID Value
  A   70
  A   80
  B   75
  C   10
  B   50
  A   1000
  C   60
  B   2000
  ..  ..
  </code></pre>
  
  <p>I would like to group this data by ID, remove the outliers from the grouped data (the ones we see from the boxplot) and then calculate mean.</p>
  
  <p>So far</p>
  
  <pre><code>grouped = df.groupby('ID')
  
  statBefore = pd.DataFrame({'mean': grouped['Value'].mean(), 'median': grouped['Value'].median(), 'std' : grouped['Value'].std()})
  </code></pre>
  
  <p><strong>How can I find outliers, remove them and get the statistics.</strong> </p>