Primary competition visual

Intron AfriSpeech-200 Automatic Speech Recognition Challenge

$5 000 USD
Challenge completed over 2 years ago
Automatic Speech Recognition
430 joined
41 active
Starti
Feb 17, 23
Closei
May 28, 23
Reveali
May 28, 23
unknown error: invalid byte sequence in UTF-8
Help · 22 Mar 2023, 13:04 · 1

I'm trying to make a submmit with an .csv or a .xls generated with pandas

- when I submitt the submit.csv, it merges the headers cells "ID" and "transcript" together and when I download it, for some reason the submit.csv now is submit.xls

- Then I tried making a solution_df.to_excel("submit.xls"), but it throws the error "unknown error: invalid byte sequence in UTF-8"

I've tried with pd.to_excel(encode=UTF-8) and still throws the same error.

I'm working on local

Discussion 1 answer
User avatar
Siwar_NASRI

Solution:

pd_df.to_csv("submit.csv", index=False)

Then when the "save as" window appears, be sure to select the "Comma separated values (.csv, current sheet)" option for the "save as type:" scrollbar.

23 Mar 2023, 02:34
Upvotes 0