title: If two seperate cells in a pandas dataframe doesn't contain a text, drop the entire row?
body: <p>Pandas Dataframe hypothetical example:</p>
  <pre><code>'A' 'B' 'C'
  A+1 B+1  1
  A+2 B+1  2
  A+3 B+1  3
  </code></pre>
  <p>Let's say i want to only keep the rows where column 'A' contains '1' and column 'B' contains '1', any other rows that dont meet this condition gets dropped.</p>
  <p>So the output dataframe looks like this:</p>
  <pre><code>'A' 'B' 'C'
  A+1 B+1  1
  </code></pre>
  <p>My attempt was to iterate through each row in column A and B:</p>
  <pre><code>for i,j in df.iterrows():
      if &quot;1&quot; in (df['A']) &amp; (df['B']):
          print()
      else:
          df.drop()
  </code></pre>
  <p>But i got this error instead:</p>
  <pre><code>TypeError: unsupported operand type(s) for &amp;: 'str' and 'str'
  </code></pre>
  <p>Is there another way to do this?</p>