write a python program to convert the data type of the columns from object to numeric using the to_numeric() function of the pandas module. code example
Example: convert column to numeric pandas
# convert all columns of DataFrame
df = df.apply(pd.to_numeric) # convert all columns of DataFrame
# convert just columns "a" and "b"
df[["a", "b"]] = df[["a", "b"]].apply(pd.to_numeric)