Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2024 06:26 AM - edited 11-11-2024 06:34 AM
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"