title: How to get pandas row number when index is not like auto_increment.
body: <p>df = </p>
  
  <p><a href="https://i.stack.imgur.com/qO4nt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qO4nt.png" alt="enter image description here"></a></p>
  
  <pre><code>df.index[df.item == 'alcohol'][0]
  </code></pre>
  
  <p>it gives me <code>45</code></p>
  
  <p>I want <code>2</code></p>
  
  <p>Please suggest. </p>