title: group and filter pandas dataframe
body: <pre><code>OID,TYPE,ResponseType
  100,mod,ok
  100,mod,ok
  101,mod,ok
  101,mod,ok
  101,mod,ok
  101,mod,ok
  101,mod,no
  102,mod,ok
  102,mod,ok2
  103,mod,ok
  103,mod,no2
  </code></pre>
  
  <p>I want to remove all OIDs that ever had no or no2 as their response.</p>
  
  <p>I tried:</p>
  
  <pre><code>dfnew = df.groupby('OID').filter(lambda x: ((x['ResponseType']=='no') | x['ResponseType']=='no2')).any() )
  </code></pre>
  
  <p>But I get SyntaxError: invalid syntax</p>
  
  <p>Another apporach could be to make a <code>set</code> of all OIDs that are to be filtered and then use those to filter the df.The df has 5000000 rows !</p>
  
  <p>Expected OP</p>
  
  <pre><code>OID,TYPE,ResponseType
  100,mod,ok
  100,mod,ok
  
  102,mod,ok
  102,mod,ok2
  </code></pre>