How do I round the numbers to 2 decimal points within a column within a dataframe?
The name of the df is tax_data and the column that I want to round is called rate_percent
I tried using:
format(round(rate_percent ,2), nsmall =2) but this didn't work.
Does anyone have any suggestions?