use a method of converting the expression to a int in python code example Example: python: convert variable as character df['myvar'] = df['myvar'].astype(str)