Skip to content

Instantly share code, notes, and snippets.

@SharathHebbar
Created November 9, 2024 08:58
Show Gist options
  • Select an option

  • Save SharathHebbar/84e2f65097be0b9cfd3a8750761fcf04 to your computer and use it in GitHub Desktop.

Select an option

Save SharathHebbar/84e2f65097be0b9cfd3a8750761fcf04 to your computer and use it in GitHub Desktop.
from pyspark.sql import SparkSession
# Initialize Spark Session
spark = SparkSession.builder \
.appName("LocalSparkSQL") \
.config("spark.sql.shuffle.partitions", "4") \
.getOrCreate()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment