Why I get SyntaxError: invalid syntax (, line 1) in submission

Hi, I have tried submitting my notebook from colab as per the given instructions, but I got a syntax error during evaluation, why I get syntax error!?, Isn’t it the CSV file only used during the evaluation

Submission Link: https://www.aicrowd.com/challenges/ai-blitz-x/problems/starship-detection/submissions/151426

It was due to because you didn’t had any commas in each list of the bbox column in your submission.csv file. such as
[1 1 1 1] instead of [1, 1, 1, 1] .

To fix this, you can simply add python list as a new column in pandas. Such as below code from Getting Started Notebook.
df = pd.DataFrame({"ImageID":image_ids, "bbox":bboxes})
Where bboxes is a nested list containing the bounding boxes in x, y, w, h format.

I hope this helps :slight_smile: . Let me know if you still have any doubts!

Shubhamai

1 Like

Thanks for the quick response, I got this error, https://stackoverflow.com/questions/64494143/pandas-to-csv-is-removing-commas
I will debug and submit!