title: Pandas Boolean Operation in a Python List
body: <p>I understand that pandas dataframe type has an ability to test the logic of it's value.</p>
  
  <p>here's the code:</p>
  
  <pre><code>import pandas as pd
  data = pd.DataFrame(columns=['a', 'b', 'c'])
  data = data.append({'a': 'I have data', 'b': 'no more complexe', 'c': 024204}, ignore_index=True)
  data = data.append({'a': 'audoausd', 'b': '2048rafaf', 'c': 29313}, ignore_index=True)
  data = data.append({'a': 'koplak ente gan', 'b': 'ente g bisa koplak', 'c': 29313}, ignore_index=True)
  </code></pre>
  
  <p>now we have the following dataframe:</p>
  
  <pre><code>                 a                   b      c
  0      I have data    no more complexe  10372
  1         audoausd           2048rafaf  29313
  2  koplak ente gan  ente g bisa koplak  29313
  </code></pre>
  
  <p>test the logic value for column c and save it to a variable</p>
  
  <pre><code>c = data.c &gt; 20000
  </code></pre>
  
  <p>will set c to the following value</p>
  
  <pre><code>0    False
  1     True
  2     True
  Name: c, dtype: bool
  </code></pre>
  
  <p>test the logic value for column b and save it to a variable</p>
  
  <pre><code>b = data.b.str.contains('koplak')
  </code></pre>
  
  <p>b value</p>
  
  <pre><code>0    False
  1    False
  2     True
  Name: b, dtype: bool
  </code></pre>
  
  <p>and also for column a</p>
  
  <pre><code>a = data.a.str.contains('koplak')
  </code></pre>
  
  <p>a value</p>
  
  <pre><code>0    False
  1    False
  2     True
  Name: b, dtype: bool
  </code></pre>
  
  <p>when i compare all of this values by doing a &amp; b &amp; c will return:</p>
  
  <pre><code>0    False
  1    False
  2     True
  dtype: bool
  </code></pre>
  
  <p>it's not well fashioned to hard code in case there are many columns involve, so i try to make a list containing all columns logic</p>
  
  <pre><code>logic = [a, b, c]
  </code></pre>
  
  <p>how do i compare all the items automatically to get a &amp; b &amp; c result?</p>