I'm trying to read a csv file file and keep getting the following error. Can anyone point me in the right direction to resolve this error?
import csv
with open('apple.csv') as csvfile:
reader = csv.reader(csvfile)
for row in reader:
print("1")
Here is the output:
Traceback (most recent call last):
File "/Users/arch/Desktop/ark/ark.py", line 4, in <module>
for row in reader:
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 263: ordinal not in range(128)