Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I write this on PyCharm: from pyspark.sql import * spark = SparkSession.builder.appName(Python Spark SQL basic example).getOrCreate() df = spark.read.load(file.csv, format=csv,sep=,, inferShema=true, header=true) df.write.format(csv).option(header, true).save(myfile) my
I write this on PyCharm:
from pyspark.sql import * spark = SparkSession.builder.appName("Python Spark SQL basic example").getOrCreate() df = spark.read.load("file.csv", format="csv",sep=",", inferShema="true", header="true")
df.write.format("csv").option("header", "true").save("myfile")
my Windows 11 creates the folder in the directory but not the file.csv can you help me?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started