title: How to add new columns into pandas Series based on existing column
body: <p>I have the following Pandas Series:
  <code>output={'index':[0,1,2,3,4],'output'=[0,1,0,0,1]}</code></p>
  
  <p>I would like to split output column into 2 columns '0' and '1':</p>
  
  <pre><code>index output 0 1
  0     0      1 0
  1     1      0 1
  2     0      1 0
  3     0      1 0
  4     1      0 1
  </code></pre>
  
  <p>then, I would like to delete output column, and be left only with 3 columns: index, 0 and 1</p>
  
  <p>I tried this ugly code:</p>
  
  <pre><code>for i in output:
      if i==0:
          output['0'],ouput['1']=1,0
      else:
          output['0'],ouput['1']=0,1
  </code></pre>
  
  <p>But it only added 2 row at the end of my Series.</p>