title: How to select all the rows that are between a range of values in specific column in pandas dataframe
body: <p>I have the below sample df, and I'd like to select all the rows that are between a range of values in a specific column:</p>
  
  <pre><code>          0       1       2     3     4     5  index
  0   -252.44 -393.07  886.72 -2.04  1.58 -2.41      0
  1   -260.25 -415.53  881.35 -3.07  0.08 -1.66      1
  2   -267.58 -412.60  893.07 -2.98 -1.15 -2.66      2
  3   -279.30 -417.97  880.86 -1.15 -0.50 -1.37      3
  4   -252.93 -395.51  883.30 -1.30  1.43  4.17      4
  </code></pre>
  
  <p>I'd like to get the below df (all the rows between index value of 1-3):</p>
  
  <pre><code>          0       1       2     3     4     5  index
  1   -260.25 -415.53  881.35 -3.07  0.08 -1.66      1
  2   -267.58 -412.60  893.07 -2.98 -1.15 -2.66      2
  3   -279.30 -417.97  880.86 -1.15 -0.50 -1.37      3
  </code></pre>
  
  <p>How can I do it?</p>
  
  <p>I tried the below which didn't work:</p>
  
  <pre><code>new_df = df[df['index'] &gt;= 1 &amp; df['index'] &lt;= 3]
  </code></pre>