AutoViML / AutoViz

Automatically Visualize any dataset, any size with a single line of code. Created by Ram Seshadri. Collaborators Welcome. Permission Granted upon Request.
Apache License 2.0
1.7k stars 196 forks source link

Read CSV file with different encodings #65

Closed gaspar-avit closed 2 years ago

gaspar-avit commented 2 years ago

Hi. I'm trying to use the library with a CSV file that uses "ISO-8859-1" encoding, and the log says:

pandas ascii encoder does not work for this file. Continuing... pandas utf-8 encoder does not work for this file. Continuing... pandas iso-8859-1 encoder does not work for this file. Continuing...

After checking the source code, I found that there is a bug in the AutoViz_Utils.py file:

image

Here there is a for loop to try with different encodings but, as it can be seen, the encoding parameter of the pd.read_csv function is always set to None.

Please, check this, maybe I'm missing something. Thanks in advance.

AutoViML commented 2 years ago

Hi @gaspar-avit 👍 You are right. Fixing it right now. You should try it with:

pip install autoviz --upgrade

Check for version number 0.1.37

Thanks AutoViML