change type in python code example
Example 1: python: convert variable as character
df['myvar'] = df['myvar'].astype(str)
Example 2: change variable type python
x = 12
str(x) #it's a String now
number = "24"
int(number) #it's an integer now
Example 3: how to tyoecast in python
example = 1.3234325
print(type(example))