title: Returning the actual index value of max & min values from a Pandas Dataframe column
body: <p>How do I print/return the index of a particular value?</p>
  
  <pre><code>movies_per_year = pd.DataFrame(movies_per_year)
  movies_per_year.columns = ["count"]
  print(movies_per_year)
  
          count
  year       
  1891      1
  1893      1
  1894      2
  1895      2
  1896      2
  1898      5
  </code></pre>
  
  <p>Here, my index is the <strong>year</strong>. I want to <em>return all the indexes where count is 1</em>. Furthermore <strong>movies_per_year.max()</strong> returns <strong>5</strong>. So, it should return <strong>1898</strong>.</p>