title: R dcast equivalent in python pandas
body: <p>I am trying to do the equivalent of the below commands in python:</p>
  
  <pre><code>test &lt;- data.frame(convert_me=c('Convert1','Convert2','Convert3'),
                     values=rnorm(3,45, 12), age_col=c('23','33','44'))
  test
  
  library(reshape2)
  t &lt;- dcast(test, values ~ convert_me+age_col, length  )
  t
  </code></pre>
  
  <p>That is, this:</p>
  
  <pre><code>convert_me   values     age_col
  Convert1     21.71502      23
  Convert2     58.35506      33
  Convert3     60.41639      44
  </code></pre>
  
  <p>becomes this:</p>
  
  <pre><code>values     Convert2_33 Convert1_23 Convert3_44
  21.71502          0           1           0
  58.35506          1           0           0
  60.41639          0           0           1
  </code></pre>
  
  <p>I know that with dummy variables I can get the value of the columns and transform as the name of the column, but is there a way to merge them(combination) easily, as R does?</p>