title: Why does the round up function in Pandas is not working?
body: <p>I have tried different ways to round up the Price values in my dataframe to 2 decimal places and they're not working. Any suggestions?</p>
  <p>Here's my code:</p>
  <pre><code>import pandas as pd
  import numpy as np
  
  data = {'Items': ['a', 'b', 'c', 'd'],
          'Price1': ['235.46548', '351.2456', '481.9874', '169.846'],
          'Price2': ['256.00', '584.951', '438.856', '246.285']}
  
  
  price_data = pd.DataFrame(data)
  
  
  decimals = pd.Series([2, 2], index=['Price1', 'Price2'])
  price_data.round(decimals)
  </code></pre>
  <p>I also tried the below code:</p>
  <pre><code>cols = ['Price1', 'Price2']
  
  price_data.loc[:, cols] = price_data[cols].round(2)
  </code></pre>
  <p>Both methods give me the below output in which the values have not been rounded up:</p>
  <pre><code>  Items     Price1   Price2
  0     a  235.46548   256.00
  1     b   351.2456  584.951
  2     c   481.9874  438.856
  3     d    169.846  246.285
  </code></pre>