I got this error after Installing my new MacOS. What could be the problem? CSV file is created but no information are written in. My code is here How to crawl for specific links in
Solution 1:
Can you try
df= pd.read_csv('file_name.csv',encoding ='latin1')
or changing the encoding to utf8
Post a Comment for "Unicodeencodeerror: 'ascii' Codec Can't Encode Character U'\xa0' In Position 500: Ordinal Not In Range(128)"