title: Pandas Pivot Table List of Aggfunc
body: <p>Pandas Pivot Table Dictionary of Agg function</p>
  
  <p>I am trying to calculate 3 <code>aggregative</code> functions during pivoting:</p>
  
  <ol>
  <li>Count</li>
  <li>Mean</li>
  <li>StDev</li>
  </ol>
  
  <p>This is the code:</p>
  
  <pre><code>n_page = (pd.pivot_table(Main_DF, 
                           values='SPC_RAW_VALUE',  
                           index=['ALIAS', 'SPC_PRODUCT', 'LABLE', 'RAW_PARAMETER_NAME'], 
                           columns=['LOT_VIRTUAL_LINE'],
                           aggfunc={'N': 'count', 'Mean': np.mean, 'Sigma': np.std})
            .reset_index()
           )
  </code></pre>
  
  <p>Error I am getting is: <code>KeyError: 'Mean'</code></p>
  
  <p>How can I calculate those 3 functions?</p>