title: How to select all elements greater than a given values in a dataframe
body: <p>I have a csv that is read by my python code and a dataframe is created using pandas.</p>
  
  <p>CSV file is in following format</p>
  
  <pre><code>1     1.0
  2     99.0
  3     20.0
  7     63
  </code></pre>
  
  <p>My code calculates the percentile and wants to find all rows that have the value in 2nd column greater than 60.</p>
  
  <pre><code>df = pd.read_csv(io.BytesIO(body), error_bad_lines=False, header=None, encoding='latin1', sep=',')
  
  percentile = df.iloc[:, 1:2].quantile(0.99)  # Selecting 2nd column and calculating percentile
  
  criteria = df[df.iloc[:, 1:2] &gt;= 60.0]
  </code></pre>
  
  <p>While my percentile code works fine, criteria to find all rows that have column 2's value greater than 60 returns</p>
  
  <pre><code>NaN     NaN
  NaN     NaN
  NaN     NaN
  NaN     NaN
  </code></pre>
  
  <p>Can you please help me find the error.</p>