SparkSession.
stop
Stop the underlying SparkContext.
SparkContext
New in version 2.0.0.
Changed in version 3.4.0: Supports Spark Connect.
Examples
>>> spark.stop()
previous
pyspark.sql.SparkSession.sql
next
pyspark.sql.SparkSession.streams