When reading the CSV file with Python 3, the Unicode decodeerror: ‘UTF-8’ codec can’t decode byte 0xd0 in position 0: invalid con appears

When reading a CSV file using pd.read_csv(), the following error occurs:
UnicodeDecodeError: ‘UTF-8’ codec can’t decode byte 0xD0 in position 0: invalid continuation byte
The file is not encoded in UTF8, and the system uses UTF8 decoding by default. The solution is to change the corresponding decoding mode.
Solutions:

    find the CSV file – “right after the notepad to open the notepad -” open way “, choose the head menu “file -> save as”, can see the default encoding of the file format for ANSI select encoding a drop-down box, choose the required encoding UTF8, re-save can finally to run the code, the problem is resolved

Read More: