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

26

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

Comments

Submit
0 Comments