title: Pandas Value Counts With Constraint For More Than One Occurance
body: <p>Working with the Wine Review Data from Kaggle <a href="https://www.kaggle.com/zynicide/wine-reviews/data" rel="nofollow noreferrer">here</a>. I am able to return the number of occurrences by variety using value_counts()</p>
  
  <p><a href="https://i.stack.imgur.com/fOAXf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/fOAXf.png" alt="enter image description here"></a></p>
  
  <p>However, I am trying to find a quick way to limit the results to varieties and their counts where there is more than one occurrence. </p>
  
  <p>Trying <code>df.loc[df['variety'].value_counts()&gt;1].value_counts()</code>
  and <code>df['variety'].loc[df['variety'].value_counts()&gt;1].value_counts()</code> 
  both return errors.</p>
  
  <p>The results can be turned into a DataFrame and the constraint added there, but something tells me that there is a way more elegant way to achieve this.</p>
  
  <p><a href="https://i.stack.imgur.com/MLD7a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MLD7a.png" alt="enter image description here"></a></p>