Dp15
Contributor

So something like this should work?

 

from pyspark.sql import SparkSession
spark = SparkSession.builder.appName("sample").getOrCreate()
getValues(spark,scenario_id,reporting_date)
       

I tried this but I am not able to pass SparkSession object to the method definition
Unsupported data type "SPARKSESSION"