title: Finding index of a pandas DataFrame value
body: <p>I am trying to process some .csv data using pandas, and I am struggling with something that I am sure is a rookie move, but after spending a lot of time trying to make this work, I need your help.</p>
  
  <p>Essentially, I am trying to find the index of a value within a dataframe I have created.</p>
  
  <pre><code>max = cd_gross_revenue.max()
  #max value of the cd_gross_revenue dataframe
  
  print max
  #finds max value, no problem!
  
  maxindex = cd_gross_revenue.idxmax()
  print maxindex
  #finds index of max_value, what I wanted!
  
  print max.index
  #ERROR: AttributeError: 'numpy.float64' object has no attribute 'index'
  </code></pre>
  
  <p>The maxindex variable gets me the answer using idxmax(), but what if I am not looking for the index of a max value? What if it is some random value's index that I am looking at, how would I go about it? Clearly .index does not work for me here.</p>
  
  <p>Thanks in advance for any help!</p>