title: Add new column using ternary condition in for loop
body: <p>How could I write this ternary condition so that I'll have a Boolean column in my data-frame.</p>
  
  <pre><code>partenaire['topcodeclub'] = ''
  for id, i in enumerate(partenaire.Adresse):
      i = str(i)
      r1 = re.findall(r"\d{5}",i)
      'True' if (r1[0][:2]==partenaire.basecodeclub[id])  else 'False'
  </code></pre>
  
  <p>Let's say I've two columns which I compare in every iteration. If match it True else it False in my <code>topcodeclub</code> How to add <code>True</code> and <code>false</code> in that column.</p>