0

When i tried opening a basic csv file with the below code I see the below error

File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 2587: invalid continuation byte

This is the code is wrote

import csv
f=open("/Users/local/Documents/practice.csv",'r')
c=csv.reader(f)
for row in c:
    print(row[1])
Nikhil
  • 1
  • 1

0 Answers0