Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to convert a pandas column price to integer?

car_sales["Price"] = car_sales["Price"].str.replace('[$,]|.d*', '').astype(int)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #pandas #column #price
ADD COMMENT
Topic
Name
9+9 =