title: Cannot index by location index with a non-integer key
body: <p>I am very new to python.my code is below -</p>
  
  <pre><code>reading_range = "0:54, 2:34" #this is my variable 
  data.iloc[reading_range]  #this line is giving error ,because the value is coming as '0:54, 2:34'
  </code></pre>
  
  <p>but I want something like </p>
  
  <pre><code>data.iloc[0:54, 2:34]
  </code></pre>
  
  <p>Thanks in advance</p>