title: Dynamic comparison with pandas AND
body: <p>I have a dictionary with each column as a key in a <code>dataframe</code> like:</p>
  
  <pre><code>dict = {"colA":1,"colB":1,"colC":1}
  </code></pre>
  
  <p>with colA, colB, colC the columns of my <code>dataframe</code>.</p>
  
  <p>I would like to do something like:</p>
  
  <pre><code>df.loc[(df["colA"] &lt; = dict["colA"]) &amp; (df["colB"] &lt; = dict["colB"]) &amp; (df["colC"] &lt; = dict["colC"])]
  </code></pre>
  
  <p>but dynamically (I don't know the length of the dict / number of columns)</p>
  
  <p>Is there a way to do a <code>&amp;</code> with dynamic number of arguments?</p>