Spark context ‘sc’ not defined December 30, 2023 by Tarik you need to do the following after you have pyspark in your path: from pyspark import SparkContext sc =SparkContext()