title: Creating a new column from the values of a column - Pandas
body: <p>I want to create a new column on pandas related to the info that I have on column C and want to create a column D..The data that I have has 50k columns so it is impossible for me to do it manually..</p>
  
  <p>A sample of the data is ;</p>
  
  <pre><code>        A           B              C
          12          12            3:02
          13          13            2:02
          14          14            3:03
          15          15            1:04
          16          16            2:05
  </code></pre>
  
  <p>I need to dive the values into 2 parts at column C from the colon symbol ;<br/>
  if the first value is bigger than the second like in row 1 ==  3>02 the value on D column value will be A<br/>
  if both values are equal like in rows 2 and 3  (2:02/3:03)  the value on D column value will be  B<br/>
  if second value is bigger than the first value like in rows 4 and 5  (1:04 /2:05 ) D  column value will be C</p>
  
  <p>so the new data will look like</p>
  
  <pre><code>    A            B             C           D
      2           12            3:02         A  
      13          13            2:02         B   
      14          14            3:03         B  
      15          15            1:04         C  
      16          16            2:05         C
  </code></pre>
  
  <p>Thanks in advance .</p>