df['myvar'] = df['myvar'].astype(str) # Transform as character df['myvar'] = df['myvar'].astype(float) # Transform as float df['myvar'] = df['myvar'].astype(int) # Transform as numeric