cara menghapus .0 dari kolom string dengan string kosong dalam python

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