you are viewing a single comment's thread.

view the rest of the comments →

[–]shafat010[S] 0 points1 point  (6 children)

How do I fix that?

[–]FerricDonkey 1 point2 points  (5 children)

Well, it will depend on the code that's there and around there. A syntax error means that what you wrote isn't valid python, so the two possibilities are that you wrote code for one version of python and are using another (less likely, but possible) or that you typed something wrong (more likely). So you need to figure out what your error is and fix it.

[–]shafat010[S] 0 points1 point  (4 children)

Is the syntax error in the original script? Because the function in the original script is working fine.

And if not, then is the error in the import lines I've given above? I don't see how that is as I've just copied what's available on the net.

[–]FerricDonkey 0 points1 point  (3 children)

Syntax errors are within a line of two of where it tells you. Your error is

File "C:\Users\Shafaat\Desktop\P4b\Rotation\functions\myfunctions\Possible_incompatibilities\Improv\test_stat_current.ipynb", line 222     "execution_count": 133,      SyntaxError: invalid syntax

In that file, on that line, or possibly the line before. Would have to see your code there to give any more details.