title: Selecting rows if at least values in one column satisfy a condition using Pandas any
body: <p>I have the following data frame:</p>
  
  <pre><code>import pandas as pd
  df = pd.DataFrame({ 'gene':["foo","bar","qux","woz"], 'cell1':[5,0,1,0], 'cell2':[12,90,13,0]})
  df = df[["gene","cell1","cell2"]]
  </code></pre>
  
  <p>Which looks like this:</p>
  
  <pre><code>  gene  cell1  cell2
  0  foo      5     12
  1  bar      0     90
  2  qux      1     13
  3  woz      0      0
  </code></pre>
  
  <p>What I want to do is to select the rows based on if the at least one value from 2nd column onwards is greater than 2. Yielding this:</p>
  
  <pre><code>  gene  cell1  cell2
  0  foo      5     12
  1  bar      0     90
  2  qux      1     13
  </code></pre>
  
  <p>I tried this but it doesn't give me what I want:</p>
  
  <pre><code>df[(df.values &gt; 2).any(axis=1)]
  </code></pre>
  
  <p>What's the right way to do it?</p>