# Error in Submission even though it passes the test

**URL:** https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294
**Category:** ADIA Lab
**Created:** [August 4, 2023, 2:30pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294 "2023-08-04T14:30:08Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![vivacious-thomas](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/vivacious-thomas/32/147_2.png) [@vivacious-thomas](https://forum.crunchdao.com/u/vivacious-thomas)
#### Post date: [August 4, 2023, 2:30pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/1 "2023-08-04T14:30:08Z")

</div>

I get the following error… I have a hard time understanding what is going on behind the hood because the test passes, on it gives me a dataframe when I run it locally…

Traceback (most recent call last):  
File “/runner/executor.py”, line 206, in cli  
ensure\_dataframe(prediction, “prediction”)  
File “/runner/executor.py”, line 90, in ensure\_dataframe  
raise ValueError(f"{name} must be a dataframe")  
ValueError: prediction must be a dataframe

Any ideas? @enzo

thanks!

---

<div class="post-metadata">

### Author: ![enzo](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/enzo/32/15_2.png) [@enzo](https://forum.crunchdao.com/u/enzo)
#### Post date: [August 4, 2023, 2:42pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/2 "2023-08-04T14:42:11Z")

</div>

> [@vivacious-thomas](#):
>
> ValueError: prediction must be a dataframe

I should print more, but the error mean that the `infer` function didn’t returned a dataframe.  
Maybe you forgot a `return`, or branched and forgot to `return` the dataframe, or even returned a series instead.

If you give me your Run ID, I could take a look to see if I can know more.

---

<div class="post-metadata">

### Author: ![vivacious-thomas](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/vivacious-thomas/32/147_2.png) [@vivacious-thomas](https://forum.crunchdao.com/u/vivacious-thomas)
#### Post date: [August 4, 2023, 3:10pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/3 "2023-08-04T15:10:55Z")

</div>

Thank you for the quick reply!

The id is #4817. It is strange because I have not changed the code in inference at all, and it failed at the first moon 268…

---

<div class="post-metadata">

### Author: ![vivacious-thomas](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/vivacious-thomas/32/147_2.png) [@vivacious-thomas](https://forum.crunchdao.com/u/vivacious-thomas)
#### Post date: [August 4, 2023, 4:20pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/4 "2023-08-04T16:20:42Z")

</div>

Same thing happened in my subsequent submission: #4826

I ran the exact same notebook used for the submission locally, and it does return a dataframe for moon 268, where the issue occurs. I suspect the issue is not on my side…

---

<div class="post-metadata">

### Author: ![enzo](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/enzo/32/15_2.png) [@enzo](https://forum.crunchdao.com/u/enzo)
#### Post date: [August 4, 2023, 4:43pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/5 "2023-08-04T16:43:11Z")

</div>

Sorry the runner had a bug that was quickly resolved.  
Just re-run your code.

---

<div class="post-metadata">

### Author: ![vivacious-thomas](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/vivacious-thomas/32/147_2.png) [@vivacious-thomas](https://forum.crunchdao.com/u/vivacious-thomas)
#### Post date: [August 4, 2023, 4:51pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/6 "2023-08-04T16:51:13Z")

</div>

Okay, thanks! I will try that.

I suppose it won;t count as new submissions.

---

<div class="post-metadata">

### Author: ![enzo](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/enzo/32/15_2.png) [@enzo](https://forum.crunchdao.com/u/enzo)
#### Post date: [August 4, 2023, 5:02pm UTC](https://forum.crunchdao.com/t/error-in-submission-even-though-it-passes-the-test/294/7 "2023-08-04T17:02:39Z")

</div>

Submissions are your code.  
Runs are running your code.

Here only running it failed because of us, so its not a new submission if that what you was afraid of.
