how to convert normal value to string value in python code example Example: python: convert variable as character df['myvar'] = df['myvar'].astype(str)