title: Reshaping Long Data to Wide in Python (Pandas)
body: <p>I'm trying to reshape my long data to a wide format. The data currently looks like: </p>
  
  <pre><code>OBS . date . TICKER . RET
  
  1 . 20050131 . AAPL . 0.02
  2 . 20050231 . AAPL . 0.01
  3 . 20050131 . GOOG . 0.05
  4 . 20050231 . GOOG . 0.03
  </code></pre>
  
  <p>And I would like to get the data like: </p>
  
  <pre><code>TICKER . 20050131 . 20050231
  
  AAPL   .   0.02   .   0.01
  GOOG   .   0.05   .   0.03
  </code></pre>
  
  <p>The data is stored in a pandas dataframe. I tried stacking the data, but I don't think I'm doing it right. </p>
  
  <p>Thanks for the help! </p>