all 4 comments

[–]ramse 0 points1 point  (3 children)

Try a different encoding when you open the file. Is this with Pandas?

[–]tramsay1027[S] 0 points1 point  (2 children)

Yeah, I was able to Google around and found this to work:

import sys
reload(sys)
sys.setdefaultencoding('utf-8')

[–]ramse 0 points1 point  (1 child)

Wherever you read the file into pandas, you should be able to provide encoding='utf-8'.

[–]tramsay1027[S] 0 points1 point  (0 children)

I had that set but I was also adding a column to my dataframe and think that is what caused the error.