Log in or register to post comments The getOrCreate() method is used to initialise a SparkContext. If a SparkContext is already present, then it returns that SparkContext; otherwise, it creates a new SparkContext. Tags PySpark Interview Questions