Can someone let me know what the squiggly lines represent in the image? The actual error the flags up when I hover my mouse over the squiggly line is:
Import “pyspark.sql.functions” could not be resolvedPylance
I’m not sure what that means, but I’m getting the error for almost all functions in VSCode.
I was with the same error as yours. VSCode usually has a “recommended” interpreter, but sometimes it won’t help you out with what you need. So,
- I changed the Interpeter (ctrl + shift + p in VSCODE).
- Look for “Python: Select Interpreter.
- Choose the one who contains the name “Conda”
And that’s how the magic happens.