start a spark session code example
Example: To create a SparkSession
# To create a SparkSession
spark = SparkSession.builder.master(
"local").appName("Word Count").config(
"spark.some.config.option", "some-value").getOrCreate()
# To create a SparkSession
spark = SparkSession.builder.master(
"local").appName("Word Count").config(
"spark.some.config.option", "some-value").getOrCreate()