convert all the string values to int in df code example
Example 1: convert pandas series from str to int
df['DataFrame Column'] = df['DataFrame Column'].astype(int)
Example 2: pandas frame convert string
df['DataFrame Column'] = pd.to_numeric(df['DataFrame Column'])