Search
 
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
Name
1+7 =