I'm trying to round some floats in a df to 2 dp but all multiples of 10 are rounded to 1 dp, so 3.60 would be 3.6 and 12.40 would be 12.4...
I have a df:
Values A B C D
Question
A2 4.08642 4.144279 3.601626 3.983852
my code
np.round(df,2)
output
Values A B C D
Question
A2 4.09 4.14 3.6 3.98
expected output
Values A B C D
Question
A2 4.09 4.14 3.60 3.98
how can I force np.round to display '3.6' as '3.60'?
FYI - I don't want to use a string formatter because I have to round these numbers.