Home>

What is a simple way to round a dataframe

Error message
intround = pd.DataFrame ([0.5 + i] for i in range (10))


0
0 0.5
1 1.5
2 2.5
3 3.5
4 4.5
5 5.5
6 6.5
7 7.5
8 8.5
9 9.5

intround.round ()


0
0 0.0
1 2.0
2 2.0
3 4.0
4 4.0
5 6.0
6 6.0
7 8.0
8 8.0
9 10.0
It will become.

0
0 1
1 2
2 3
3 4
4 5
5 6
6 7
7 8
8 9
9 10
Please tell me how simple rounding is to be an integer that is not even rounding.