errors while running a code

The vague title is not addressed in this long post.
Please read Getting good answers to your questions. (I would also suggest reading through How do I ask a good question? at the bottom there. ) Please, look at other questions that have good engagement and compare them to yours.

Also consider if this is pertinent to this forum about Jupyter? If you ran this Python code in a more traditional way, such as in the console or as the content a script you called from the command line for Python run, would it give the same outcome? If so, it isn’t a Jupyter issue and so not pertinent to this forum.

1 Like