I have a column in a Pandas dataframe which has mixed values, i.e. strings, floats and numbers. I would like to convert all values in this column to strings, but it does not let me as it says:
df['text'] = df['text'].astype(str)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201d' in position 1: ordinal not in range(128)
I know that normally you can just convert a float by using
str(0.05) --> '0.05'
But now when I cast the column as string, it still leaves the floats as floats.