Whenever I execute any code on Databricks Community Edition with "is" I get the following error:
SyntaxWarning: "is" with a literal. Did you mean "=="?
For example, the following code will generate the error:
if len(chkRows) is 0:
I have done some research and I believe the issue is with Python 3.8.
How can I overcome this situation without having to re-code all of my work? All of my code is set up in my Python wheel, and I can't find the original code.
I changed the code from "is" to "==", but I get the same error
<command-4177784089769769>:15: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(pkRows) == 0:
<command-4177784089769769>:23: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(chkRows) == 0:
<command-4177784089769769>:15: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(pkRows) == 0:
<command-4177784089769769>:23: SyntaxWarning: "is" with a literal. Did you mean "=="?
if len(chkRows) == 0:
Any thoughts please?