d6tstack icon indicating copy to clipboard operation
d6tstack copied to clipboard

Encoding error reading csv files to combine

Open lucky-luk3 opened this issue 4 years ago • 0 comments

I have csv files and I'm trying to fix different columns between them.

The function d6tstack.combine_csv.CombinerCSV works fine in other cases but now I have problems with the encoding.

I need to pass the parameter encoding="latin-1" to Pandas read_csv but it doesn't work. In the documentation I found that is possible to pass read_csv_params={"encoding" : "latin-1"} but it doesn't work, it doesn't apply this encoding.

I tried reading the same file directly with Pandas and whit the parameter encoding works fine.

Are there another posivility to resolve it? Thanks in advance.

lucky-luk3 avatar Aug 28 '21 22:08 lucky-luk3