title: How to compare rows of column in pandas, python
body: <p>I have got pandas dataframe, looking like that:</p>
  <pre class="lang-none prettyprint-override"><code>    HomeTeam    AwayTeam    HTR FTR
  
  39  Arsenal     Tottenham   2   12
  136 Norwich     Arsenal     1   2
  101 Arsenal     Wolves      1   1
  </code></pre>
  <p>I would like to add there column, to compare HTR and FTR in every row. There are 3 possible values: 1,2 or 12.</p>
  <p>If HTR=FTR I would like to get &quot;1&quot; in new column,
  if HTR ≠ FTR I would like to get &quot;0&quot;.</p>