DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
convert string to int dataframe column
df["col-1"] = pd.to_numeric(df["col-1"])
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#convert
#string
#int
#dataframe
#column
ADD COMMENT
Topic
COMMENT
Name
2+3 =
Submit