SyntaxFix
Write A Post
Hire A Developer
Questions
For some reason the round() method doesn't work if you have float numbers with many decimal places, but this will.
decimals = 2 df['column'] = df['column'].apply(lambda x: round(x, decimals))