title: How to reorganise a pandas dataframe
body: <p>I'm trying to reorganise a  pandas dataframe, which looks like this</p>
  
  <pre><code>    t   p   q   r   s
  1   a   1   14  26  38
  1   b   2   15  27  39
  1   c   4   16  28  40
  2   a   6   18  30  42
  2   b   7   19  31  43
  2   c   8   20  32  44
  3   a   10  22  34  46
  3   b   11  23  35  47
  3   c   12  24  36  48
  </code></pre>
  
  <p>To one that looks like this:</p>
  
  <pre><code>    a               b               c           
      p   q   r   s   p   q   r   s   p   q   r   s
  1   1   14  26  38  2   15  27  39  4   16  28  40
  2   6   18  30  42  7   19  31  43  8   20  32  44
  3   10  22  34  46  11  23  35  47  12  24  36  48
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>