DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+2 =
Submit