How to Solve NameError: name 'SQLContext' is not defined -- pyspark
Solution: Import the 'SQLContext' module
To Solve the error, add the following line to the top of your code.
from pyspark.sql import SQLContext
For more information:
Python pyspark SQLContext