title: How to create a new column based on multiple conditions on other columns?
body: <p>I have the following dataframe that is I need to use to create a new conditions based on multiple columns, each column has a different data type. The dataframe looks like this:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>column_str</th>
  <th>column_str2</th>
  <th>column_int</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>True</td>
  <td>5</td>
  <td>12</td>
  </tr>
  <tr>
  <td>Config</td>
  <td>4</td>
  <td>8</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>Basically what I was doing was using np.where so I can compare all the columns between them like this:</p>
  <pre><code>    df[&quot;SLA&quot;] = np.where(df[&quot;column_str &quot;] == &quot;True&quot;| column_str2[&quot;score_str&quot;] == &quot;5&quot; | df[&quot;column_int&quot;] &gt; 2,&quot;out&quot;,
                  np.where(df[&quot;column_str &quot;] == &quot;True&quot;| column_str2[&quot;score_str&quot;] == &quot;3&quot; | df[&quot;column_int&quot;] &gt; 90,&quot;out&quot;,&quot;other&quot;)
  </code></pre>
  <p>However when I try to run this code it gives me this error:</p>
  <p>TypeError: Cannot perform 'ror_' with a dtyped [object] array and scalar of type [bool]</p>
  <p>Any idea on what I can do here? Appreciate all the assistance in advance.</p>