how can i stop showing the decimal .0 after the whole number? python
This should work pretty ok data['Final'] = round(data['Total'])
This converts the decimal number to it nearest integer and the returned number doesn't have a decimal point
Note: I'm assuming that data is just dictionary that contains float numbers, since no more information was provided
So, i entered code below to round a column to the nearest integer, though it still shows up with decimals.
Eg. I want to round 62.040 to just 62 though once the code is entered it shows 62.0 in the output
data['Final'] = np.ceil(data['Total'].round())