title: Python pandas DataFrame loc selection for a range of rows and columns
body: <p>Here is a head() of my DataFrame df:</p>
  
  <pre><code>                     Temperature  DewPoint  Pressure
  Date                                                
  2010-01-01 00:00:00         46.2      37.5       1.0
  2010-01-01 01:00:00         44.6      37.1       1.0
  2010-01-01 02:00:00         44.1      36.9       1.0
  2010-01-01 03:00:00         43.8      36.9       1.0
  2010-01-01 04:00:00         43.5      36.8       1.0
  </code></pre>
  
  <p>I want to select from August 1 to August 15 2010 and display only the Temperature column.</p>
  
  <p>What I am trying to do is:
  df.loc[['2010-08-01','2010-08-15'],'Temperature']</p>
  
  <p>But this is throwing me an error.</p>
  
  <p>Generally speaking what I want to learn is how, using loc method I can easily take a range of row i to row k and column j to p and show it in dataframe using loc method:</p>
  
  <p>df.loc[[i:k],[j:p]]</p>
  
  <p>Thank you very much in advance!!!
  Steve</p>