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