I have a dataframe with different values. The values are numbers, but sometimes they can be strings. I want to show only one decimal after the dot.
I've tried converting to string, but I don't know how to take one character after the dot.
This is my dataframe(reduced):
0 18.932202 19.063694 19.822535 22.3385
1 19.215377 19.424890 20.249221 22.3116
2 19.096696 19.361342 20.011814 21.2492
3 18.914138 19.016130 >30.0 22.3597
4 18.896591 19.051426 19.647521 20.982
the number with '>' is a string, that's why I convert everything to string.
Expected dataframe:
0 18.9 19.0 19.8 22.3
1 19.2 19.4 20.2 22.3
2 19.0 19.3 20.0 21.2
3 18.9 19.0 >30.0 22.3
4 18.8 19.0 19.6 20.9