title: Python pandas dataframe group by based on a condition
body: <p>My question is simple, I have a dataframe and I <code>groupby</code> the results based on a column and get the size like this:</p>
  
  <pre><code>df.groupby('column').size()
  </code></pre>
  
  <p>Now the problem is that I only want the ones where size is greater than <em>X</em>. I am wondering if I can do it using a lambda function or anything similar? I have already tried this:</p>
  
  <pre><code>df.groupby('column').size() &gt; X
  </code></pre>
  
  <p>and it prints out some True and False values.</p>