I want each values of df have different decimal point like this
year month day
count 1234 5678 9101
mean 12.12 34.34 2.3456
std 12.12 3.456 7.789
I searched to find a way to change specific value's decimal point but couldn't find the way. So this is what I've got
year month day
count 1234.0000 5678.0000 9101.0000
mean 12.1200 34.3400 2.3456
std 12.1200 3.4560 7.7890
I know the round() method but I don't know how to assign it to each values not the whole row or columns. Is it possible to change values separately?
You can change displayning of floats:
Or change format to 6 zeros: