title: iterate through columns pandas dataframe and create another column based on a condition
body: <p>I have a dataframe df</p>
  <pre><code>ID  ID2 escto1 escto2   escto3
  1   A   1   0   0
  2   B   0   1   0
  3   C   0   0   3
  4   D   0   2   0
  </code></pre>
  <p>so either using indexing or using wildcard</p>
  <pre><code>like column name 'escto*'
  if df.iloc[:, 2:]&gt;0 then df.helper=1
  </code></pre>
  <p>or</p>
  <pre><code>df.loc[(df.iloc[:, 3:]&gt;0,'Transfer')]=1
  </code></pre>
  <p>So that output becomes</p>
  <pre><code>ID  ID2 escto1  escto2  escto3  helper
  1   A   1   0   0   1
  2   B   0   1   0   1
  3   C   0   0   3   1
  4   D   0   2   0   1
  </code></pre>
  <p><a href="https://i.stack.imgur.com/C6hTr.png" rel="nofollow noreferrer">Output</a></p>