title: Round each number in a Python pandas data frame by 2 decimals
body: <p>This works <code>p_table.apply(pd.Series.round)</code> however it has no decimal places</p>
  
  <p><a href="http://pandas.pydata.org/pandas-docs/stable/generated/pandas.Series.round.html" rel="noreferrer">Documentation says</a></p>
  
  <pre><code>import pandas as pd
  
  Series.round(decimals=0, out=None)
  </code></pre>
  
  <p>i tried this <code>p_table.apply(pd.Series.round(2))</code> but get this error:</p>
  
  <pre><code>unbound method round() must be called with Series instance as first argument (got int instance instead)
  </code></pre>
  
  <p>How do I round all elements in the data frame to two decimal places?</p>
  
  <p>[EDIT] Figured it out. </p>
  
  <pre><code>import numpy as np
  np.round(p_table, decimals=2)
  </code></pre>