how to remove .0 from string column with empty strings in python

35

df = df.astype(str).replace(r'\.0$', '', regex=True)

Comments

Submit
0 Comments