0
I have some files to read in Python, I’m using the following structure:
df = pd.read_csv(path, Sep=' t')
And this generated the following error:
Unicodedecodeerror: 'utf-8' codec can’t Decode byte 0xc3 in position 9: Unexpected end of data
Searching the internet, I added an engine='python' (df = pd.read_csv(path, engine='python', Sep=' t')) and it read normally, I thought my problems were over, but when I went to read the other files, the following error happened:
Using encoding = 'ISO-8859-1' also solved in the first case, but in the other files was the following:
pandas.errors.Parsererror: NULL byte Detected. This byte cannot be processed in Python’s Native csv library at the Moment, so Please pass in engine='c' Instead
Visually, both files are equal, same data type, same size virtually, same extension. Does anyone know the pq of this incompatibility?