title: How to compare two columns of the same dataframe?
body: <p>I have a dataframe like this:</p>
  
  <pre><code> match_id inn1  bat  bowl  runs1 inn2   runs2   is_score_chased
      1     1     KKR  RCB    222  2      82          1
      2     1     CSK  KXIP   240  2      207         1
      8     1     CSK  MI     208  2      202         1
      9     1     DC   RR     214  2      217         1
     33     1     KKR  DC     204  2      181         1
  </code></pre>
  
  <p>Now i want to change the values in <strong>is_score_chased</strong> column by comparing the values in <strong>runs1</strong> and <strong>runs2</strong> . If runs1>runs2, then the corresponding value in the row should be <strong>'yes'</strong> else it should be <strong>no</strong>.
  I tried the following code:</p>
  
  <pre><code>for i in (high_scores1):
    if(high_scores1['runs1']&gt;=high_scores1['runs2']):
        high_scores1['is_score_chased']='yes'
    else:
        high_scores1['is_score_chased']='no' 
  </code></pre>
  
  <p>But it didn't work. How do i change the values in the column?</p>