Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

column to int pandas

# convert  entire Series
my_series = pd.to_numeric(my_series)

# convert column "a" of a DataFrame
df["a"] = pd.to_numeric(df["a"])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #column #int #pandas
ADD COMMENT
Topic
Name
8+6 =