I tried to create a DataFrame with the lib pandas from a file that is sent to me in the following format:
--------------------------------
|Indice|Preço|Quantidade|Cidade|
--------------------------------
|1|1000|2|São Paulo|
.
.
.
I used the read_csv method with the delimiter "|" and I get the following error:
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 3: invalid continuation byte
I tried to use some other encodings but I could not figure out how to separate the data correctly. Nowadays I use excel to make this division and delete dashed lines (------).
Thank you in advance for the help you can give me.