Skip to content
Snippets Groups Projects
Commit aefe3d3f authored by Margaretha Olivia's avatar Margaretha Olivia
Browse files

feat: add dataset and spark base code

parent 71fb5a5e
Branches
No related merge requests found
from pyspark.sql import SparkSession
# Initialize Spark session
spark = SparkSession.builder.appName("ChurnPrediction").getOrCreate()
# Load the dataset
df = spark.read.csv("telco_customer_churn.csv", header=True, inferSchema=True)
# Show the DataFrame
df.show()
# Stop the Spark session
spark.stop()
\ No newline at end of file
This diff is collapsed.
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment