2
I tried to create a Dataframe with the pandas lib of 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 couldn’t find the way to separate the data correctly. Nowadays I use excel to do this division and delete dashed lines (------).
I appreciate the help you can give me.