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?
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
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.
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