python code to convert a character to a interger code example Example: python: convert variable as character df['myvar'] = df['myvar'].astype(str)