string variable to int python code example
Example 1: python string to int
print(int("12"))
Example 2: python: convert variable as character
df['myvar'] = df['myvar'].astype(str)
print(int("12"))
df['myvar'] = df['myvar'].astype(str)