class_docstr: Extension methods over Spark DataFrame
docstr: get the associated Spark session
  
  Parameters
  ----------
  df : DataFrame
      the dataframe of which we want to get its Spark session
docstr_tok: ["get","the","associated","Spark","session","Parameters","--","--","--","--","--","df",":","DataFrame","the","dataframe","of","which","we","want","to","get","its","Spark","session"]
code: def get_spark_session(df: DataFrame) -> SparkSession:
      """get the associated Spark session
  
      Parameters
      ----------
      df : DataFrame
          the dataframe of which we want to get its Spark session
      """
  
      return df.sql_ctx.sparkSession
  
imports: from typing import Any, List, Union
  from pyspark.ml.param.shared import HasInputCol, HasOutputCol, Param
  from pyspark.sql import DataFrame, SparkSession, functions, types
  from pyspark.sql.window import Window
label_desc: Use image node_id 1 for calling the DataFrameUtils obj's underlying member method code with example usage: obj.get_spark_session(df) and returns: df