title: Converting my column to 2 decimal places
body: <p>I have a dataset:</p>
  
  <pre><code>df = pd.read_excel('/Users/Adeel/Desktop/ECON628-01-omerqureshi84/datasets/main-data.xlsx')
  </code></pre>
  
  <p>It has columns with names such as "lerate" which is the log of the exchange rates for countries. It's in 5 decimal places and and I'm trying to convert it to 2 decimal places.</p>
  
  <p>I'm using the following code:</p>
  
  <pre><code>for i in range(len(df.lerate)):
      print ("%.2f" % df.lerate[i])
  </code></pre>
  
  <p>It's giving me an error.</p>
  
  <p>Can anyone help? I don't know what's wrong here.</p>