title: Get the index from an specific value in a panda Dataframe
body: <p>I'm looking for a way to get the row index from an specific entry in that's in a column of the Dataframe. I need it so that the I can use that index to get the whole row where that entry is. I have achieved to get the value I'm looking for in the column but I'm unable to get its index. Here's my code so far:</p>
  
  <pre><code>import glob, os
  from pandas import *
  filepath = r'C:\Users\Dani\Documents\clase dani\PhD\GC\Cuanti'
  for csv_file in glob.glob(os.path.join(filepath, '*.csv')):
      rt=pandas.read_csv(csv_file, skiprows=6)
      rt.set_index('Peak')
      RTlist=rt.loc[:,'R.T.']
      for item in RTlist:
          if 5.5&lt;item&lt;5.8:
              #here's where I want to get the row index where item is at, but I can't achieve it. 
  </code></pre>
  
  <p>Thanks for your help. </p>