Error not understand

Please delete this as you posted an updated, somewhat better one with the same issue.

Additionally, please read Getting good answers to your questions. The link at the bottom, How do I ask a good question? there, is a particularly good guide to step through to consider how and what to post.
Also you can run things directly in Python, separate from Jupyter, in the Python console or as a traditional .py code script that you point Python at on the command line, you should do this to understand where your issues are coming from. If you have the same issue there with the code, then it isn’t Jupyter involved.
Once you do that a few times, you’ll probably start to get a better idea of what contributes to your issues and you can do this exercise in your head and decide where is appropriate to post.