Primary competition visual

Digital Green Crop Yield Estimate Challenge

Helping India
€9 400 EUR
Completed (over 2 years ago)
Prediction
1368 joined
678 active
Starti
Sep 04, 23
Closei
Dec 03, 23
Reveali
Dec 03, 23
Missing ID when submitting
Help · 2 Dec 2023, 04:31 · 2

Hi guys, I am having an issue where whenever I try to submit the prediction I get an error saying that I have some missing ID in my prediction. However, when I go to check my prediction file all the IDs the system says that I am missing are clearly in inside the file along with its yield. BTW my prediction does have 1290 rows in total. Can someone please help 😢

Discussion 2 answers
User avatar
Sourabh

sample=pd.read_csv('SampleSubmission.csv')

sample['Yield']=pred

sample.to_csv('submission.csv',index=False)

it's work better!

2 Dec 2023, 05:03
Upvotes 1

Yeah it mostly happens when you have index in your submission file

So when converting it into csv set the index parameter to false.

sub.to_csv("BenchmarkSubmission.csv", index=False)

2 Dec 2023, 07:49
Upvotes 1