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