PySpark referenceClassesSparkSessionactiveOn this pageactive Returns the active or default SparkSession for the current thread, returned by the builder. Syntax SparkSession.active() Returns SparkSession