from pyspark.sql import SparkSession # import spark = SparkSession.builder.appName("SparkDF").getOrCreate()
Set a
human-readable
name for
Spark Session
Build a
Spark session
with specified
configuration
Retrieve an
existing session
if available