title: New column in Pandas dataframe based on boolean conditions
body: <p>I'd like to create a new column to a Pandas dataframe populated with True or False based on the other values in each specific row. My approach to solve this task was to apply a function checking boolean conditions across each row in the dataframe and populate the new column with either True or False.    </p>
  
  <p>This is the dataframe:</p>
  
  <pre><code>l={'DayTime':['2018-03-01','2018-03-02','2018-03-03'],'Pressure':
  [9,10.5,10.5], 'Feed':[9,10.5,11], 'Temp':[9,10.5,11]}
  
  df1=pd.DataFrame(l)
  </code></pre>
  
  <p>This is the function I wrote:</p>
  
  <pre><code>def ops_on(row):
     return row[('Feed' &gt; 10)
                &amp; ('Pressure' &gt; 10)
                &amp; ('Temp' &gt; 10)
               ]
  </code></pre>
  
  <p>The function ops_on is used to create the new column ['ops_on']:</p>
  
  <pre><code>df1['ops_on'] = df1.apply(ops_on, axis='columns')
  </code></pre>
  
  <p>Unfortunately, I get this error message:</p>
  
  <p>TypeError: ("'>' not supported between instances of 'str' and 'int'", 'occurred at index 0') </p>
  
  <p>Thankful for help. </p>