Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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

df = df.astype(str).replace(r'.0$', '', regex=True)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #string #column #empty #strings #python
ADD COMMENT
Topic
Name
5+2 =