title: How to encode and decode a column in python pandas?
body: <pre><code>load = pd.DataFrame({'A':list('abcdef'),
                     'B':[4,5,4,5,5,4],
                     'C':[7,8,9,4,2,0],
                     'D':[1,3,5,4,2,0],
                     'E':[5,3,6,9,2,4],
                     'F':list('aaabbb')})
  </code></pre>
  
  <p>How to encode and decode column F.</p>
  
  <p>Expected Output:</p>
  
  <p>Should have two more columns with encoded and decoded values </p>
  
  <pre><code>    A   B   C   D   E   F Encoded_Column           Decoded_Column
  0   a   4   7   1   5   a   &lt;!--Encoded Value--&gt;    a
  1   b   5   8   3   3   a   &lt;!--Encoded Value--&gt;    a
  2   c   4   9   5   6   a   &lt;!--Encoded Value--&gt;    a 
  3   d   5   4   4   9   b   &lt;!--Encoded Value--&gt;    b
  4   e   5   2   2   2   b   &lt;!--Encoded Value--&gt;    b
  5   f   4   0   0   4   b   &lt;!--Encoded Value--&gt;    b
  </code></pre>