DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pandas currency to numbe
df[df.columns[1:]] = df[df.columns[1:]].replace('[$,]', '', regex=True).astype(float)
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pandas
#currency
#numbe
ADD COMMENT
Topic
COMMENT
Name
4+8 =
Submit