title: TypeError: unhashable type: 'slice' pandas DataFrame column
body: <p>This is probably simple but I cant find the explanation and it happens to me all the time.</p>
  
  <p>I am trying to selected values from column <code>Rate1E</code> that are over <code>3.5</code> and view the rest of the rows in pandas DataFrame <code>energy</code> for selected rows meeting criteria as stated above. I had someone give me an answer before and have simply changed to text as follows:</p>
  
  <pre><code>energy = energy.loc[energy[:, 'Rate1E'] &gt;= 3.5]
  print(energy.loc[:, 'Rate1E'])
  </code></pre>
  
  <p>However once again I have found myself with the error:</p>
  
  <pre><code>TypeError: unhashable type: 'slice'
  </code></pre>
  
  <p>Online solutions suggest <code>.loc</code> is the answer. Would someone know how to fix the code or better yet explain to me why I always seem to get that error.</p>
  
  <p>Thanks.</p>