title: Python - Comparison operator more than 2 conditions
body: <p>I am writing code to get members data that spend above $5000 and also with recency of more than 100 days, to classify these members as the top group. The first line in the below works, but when I add another condition (2nd line), it does not filter anymore. Can anyone tell me why? Thanks!</p>
  
  <pre><code>GrpA=(MbrKPI3[(MbrKPI3['Amt'])&gt;5000])
  
  GrpA=(MbrKPI3[(MbrKPI3['Amt'])&gt;5000 &amp; (MbrKPI3['Recency']&gt;100)])
  </code></pre>