sparkSession

返回创建此数据帧的 Spark 会话。

退货

SparkSession

示例

df = spark.range(1)
type(df.sparkSession)
# <class '...session.SparkSession'>