Command
from pyspark.sql import SparkSession
Explanation
A SparkSession is the entry point to using PySpark.
Examples
Create SparkSession
spark = SparkSession.builder.appName("App").getOrCreate()
from pyspark.sql import SparkSession
A SparkSession is the entry point to using PySpark.
Create SparkSession
spark = SparkSession.builder.appName("App").getOrCreate()