title: how to get range of index of pandas dataframe
body: <p>What is the most efficient way to get the range of indices for which the corresponding column content satisfy a condition .. like rows starting with  tag and ending with "body" tag.</p>
  
  <p>for e.g  the data frame looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/gFnSp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gFnSp.png" alt=""></a></p>
  
  <p>I want to get the row index  1-3</p>
  
  <p>Can anyone suggest the most pythonic way to achieve this?</p>
  
  <pre><code>import pandas as pd
  
  df=pd.DataFrame([['This is also a interesting topic',2],['&lt;body&gt; the valley of flowers ...',1],['found in the hilly terrain',5],
               ['we must preserve it &lt;/body&gt;',6]],columns=['description','count'])
  
  print(df.head())
  </code></pre>