Nov-05-2022, 02:43 PM
Hi,
I have below datframe with numerical column marks
df:
desired output:
I have below datframe with numerical column marks
df:
name age marks A 14 12.34 B 12 34.1 C 29 19.567I want to increase marks column decimals to 6
desired output:
name age marks A 14 12.340000 B 12 34.100000 C 29 19.567000I use below code but it did not change anything:
df['marks'] =df['marks'].round(6)