Last answered:

22 May 2024

Posted on:

05 Jun 2023

0

Error when executing insert_query

Hello,


I am receiving an error message when executing the insert_query variable that was created in the previous loop. The error message attached below:

I did notice that the 'insert_query' output slightly differed from the one obtained in the video, the prediction outputs never ported over to the created string as shown in the following photo:

After the probabilities there is a comma with no further outputs prior to the parentheses. Any help would be greatly appreciated, thanks in advance!

1 answers ( 0 marked as helpful)
Instructor
Posted on:

22 May 2024

0

Hi Chris!

Thanks for reaching out.

Well spotted! There's not necessarily an error in the code but perhaps you have executed a certain cell (or the one you've shown) several times. Thus, the output is affected.

Could you restart the kernel and run the Notebook Document Code once more? Please let us know if you are still obtaining the same issue (in which case - please post the code you've used).

Looking forward to your answer.
Kind regards,
Martin

Submit an answer