Working with pandas and every time a "special" char like: é comes up it throws an Encoding error. this is my code:
import pandas as pd
df = pd.read_csv(r'movies analysis\movie_metadata.csv',encoding='utf-8')
print(df.loc[df['title_year'] == 2015])
and this is the error i'm getting:
File "D:\ANACONDA\lib\encodings\cp1255.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\xe9' in position 645: character maps to <undefined>
there are many threads on the subject but none offer a solution that worked for me.