title: Pandas: Get Dummies
body: <p>I have the following dataframe:</p>
  
  <pre><code>   amount  catcode    cid      cycle      date     di  feccandid    type
  0   1000    E1600   N00029285   2014    2014-05-15  D   H8TX22107   24K
  1   5000    G4600   N00026722   2014    2013-10-22  D   H4TX28046   24K
  2      4    C2100   N00030676   2014    2014-03-26  D   H0MO07113   24Z
  </code></pre>
  
  <p>I want to make dummy variables for the values in column <code>type</code>. There about 15. I have tried this:</p>
  
  <p><code>pd.get_dummies(df['type'])</code></p>
  
  <p>And it returns this:</p>
  
  <pre><code>           24A  24C  24E  24F  24K  24N  24P  24R  24Z
  date                                    
  2014-05-15  0    0    0    0    1    0    0    0    0
  2013-10-22  0    0    0    0    1    0    0    0    0
  2014-03-26  0    0    0    0    0    0    0    0    1
  </code></pre>
  
  <p>What I would like is to have a dummy variable column for each unique value in <code>Type</code></p>