I have data frame with a object column lets say col1, which has values likes: 1.00, 1, 0.50, 1.54
I want to have the output like the below: 1, 1, 0.5, 1.54 basically
Taken from this Stackoverflow answer, I think you'd like to change the display precision of pandas like so:
pd.set_option('precision', 0)