(Jan-01-2021, 07:27 AM)buran Wrote:(Jan-01-2021, 06:29 AM)SunWers Wrote: I was thinking I needed to convert it to a .csv file that I would then need to convert to a .xlsx file.No need to convert to csv. Parse the input file and write to excel file. Your excel file has specific/custom format, so I guess you need to write using package likeopenpyxl
, just usingpandas.DataFrame.to_excel()
will not work for you.
(Jan-01-2021, 06:29 AM)SunWers Wrote: I'm thinking it's because of this part of the code with the ;
you think it's tab-delimied, but usesep=";"
? try withsep='\t'
or let pandas engine to guess as suggested.
Hi buran,
I tried setting
sep='\t'
and it still didn't do the trick. I will work on your suggestion above. I haven't tried using openpyxl. So I need to use a combination of openpyxl and `pandas.DataFrame.to_excel()? Not sure how to set that up yet but I will work on that now and see what I can do.Thanks,
Veronica