Last answered:

04 Aug 2022

Posted on:

02 Aug 2022

0

Getting error "Index not Found"

I have tried so many things to fix this error but it was useless. It is saying that  ['Pets'] index is not found. But there is an index. It fixid its spelling and even rewrote the code but could not fix. Can you help me with this, please?image

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

02 Aug 2022

1

Hi Islombek!
Thanks for reaching out.

The error is in the mismatch spelling of the variable: Pets  in model file and module file. You should use the correct name. You can refer to the following thread. Thank you.
https://learn.365datascience.com/question/keyerror-pets-month-value-not-in-index/

Hope this helps.
Best,
Tsvetelin

Posted on:

02 Aug 2022

1

Thank you very much for responding to my question.
Yes, I did that but it did not work anyway. However, it worked after restarting Conda and JupeterNotebook.

Instructor
Posted on:

04 Aug 2022

0

Hi Islombek!

Yes, sometimes restarting Jupyter Notebook resolves similar issues.
I am glad that you have resolved your issue!
You are very welcome!

Best,
Tsvetelin

Submit an answer