I want keep only 3 decimals of the value which I have in a column. But its not working properly.
Input Data
td['latitude']
2.999852
2.999852
2.714852
4.998789
4.999789
My code
dd = round(td['latitude'], 3)
Current Output
dd
3.0
3.0
2.714
5.0
5.0
Expected Output
dd
2.999
2.999
2.714
4.998
4.9997
What is wrong in my code. How to fix this.