pyspark.sql.SparkSession.builder.create#

builder.create()#

Creates a new SparkSession.

New in version 3.5.0.

Changed in version 4.2.0: Supports creating a SparkSession in Classic mode.

Returns
SparkSession

Notes

This method will update the default and/or active session if they are not set.