could you please help me with something?
I have very large .xlsx files (ranging from 200MB to 1.4GB) that I need to convert to .csv format.
I wanted to use a csvkit function in2csv:
(venv) C:\Users\Martin\csvkit_tutorial>in2csv first.xlsx > second.csv
However, when I run it, I get this error:
C:\Users\Martin\csvkit_tutorial\venv\Lib\site-packages\agate\utils.py:274: UnnamedColumnWarning: Column 0 has no name. Using "a".
UnicodeEncodeError: 'charmap' codec can't encode characters in position 137-146: character maps to <undefined>
I don't care if the first column is named "a". The main issue is the second error, UnicodeEncodeError.
The second.csv file is created, but only until the error has occured, i.e. only 133 lines out of thousands are converted into .csv.
I have looked online, and people have suggested that converting the encoding into, e.g. utf-8 standard would help, but I do not know how to do this within csvkit.
Thank you for your help.
TLDR: I tried to convert .xlsx file into .csv using csvkit function in2csv. It did not work properly, citing a UnicodeEncodeError, and only a small part of the file was converted.