title: How do I slice a pandas dataframe based on a condition?
body: <p>When I use the following code:</p>
  
  <pre><code>frioMurteira = data.loc[(data["POM"] == "Murteira" &amp; data["TMP"] &gt; 7.2), ["DTM","TMP"]]
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>cannot compare a dtyped [float64] array with a scalar of type [bool]
  </code></pre>
  
  <p>Could you help me?</p>
  
  <p>Thank you</p>