title: Pandas- How to create a nested if condition Excel like row logic
body: <p>I'm trying to check every row of columns A,B,C,D,E,F whether they are &gt;200 or not, if not return the same value in a new column:</p>
  <pre><code>=IF(A2&gt;200,IF(B2&gt;200,IF(C2&gt;200,IF(D2&gt;200,IF(E2&gt;200,F2,E2),D2),C2),B2),A2)
  </code></pre>
  <p>Condition:</p>
  <p>Check if A2 cell value &gt; 200</p>
  <ul>
  <li>If it is <code>True</code>, go to cell B2 check if the value &gt; 200 and so on till E2.</li>
  <li>If it is <code>False</code>, give me value of A2 in a new column.</li>
  </ul>
  <p>Finally after checking all the A,B,C,D,E,F rows for the &gt; 200 condition, a new column is to be created.</p>