title: Pivot table with Pandas float and int values
body: <p>Goodmorning everyone</p>
  
  <p>Python 2.7.3.final.0</p>
  
  <p>Pandas 0.15.1</p>
  
  <p>I must pivot multi values ​​.... float and int ... but it doesn't work .
  Here are some examples</p>
  
  <pre><code>import pandas as pd
  import decimal
  import numpy as np
  
  data = [[decimal.Decimal('696.00'), decimal.Decimal('1876.53'), decimal.Decimal('2578.53'), 518L, 2008, 'Ala'], [decimal.Decimal('705.52'), decimal.Decimal('4534.33'), decimal.Decimal('5246.33'), 525L, 2007, 'Ala']]
  headers = ['A', 'B', 'C', 'D', 'E', 'F']
  df = pd.DataFrame(data, columns=headers)
  
  columns = ['E']
  rows = ['F']
  value = ['A', 'B'] # A float, B float
  
  pivot_df = df.pivot_table(columns=columns,
                                    index=rows,
                                    values=value,
                                    margins=True,
                                    aggfunc=np.sum)
  </code></pre>
  
  <p>Result </p>
  
  <pre><code>          A                         B                  
  E      2007    2008      All     2007     2008      All
  F                                                      
  Ala  705.52  696.00  1401.52  4534.33  1876.53  6410.86
  All  705.52  696.00  1401.52  4534.33  1876.53  6410.86
  </code></pre>
  
  <p>All rights !</p>
  
  <pre><code>value = ['A', 'D'] # A float, D int
  
  pivot_df = df.pivot_table(columns=columns,
                                    index=rows,
                                    values=value,
                                    margins=True,
                                    aggfunc=np.sum)
  </code></pre>
  
  <p>Result</p>
  
  <pre><code>       D           
  E   2007 2008   All
  F                  
  Ala  525  518  1043
  All  525  518  1043
  </code></pre>
  
  <p>Dosen't work .....</p>
  
  <p>And ideas ?</p>
  
  <p>Beat regards.</p>
  
  <p>Manuel</p>