Encoding Error in Panda read_csv [duplicate]
Solution 1:
Try calling read_csv
with encoding='latin1'
, encoding='iso-8859-1'
or encoding='cp1252'
(these are some of the various encodings found on Windows).
Solution 2:
This works in Mac as well you can use
df= pd.read_csv('Region_count.csv', encoding ='latin1')