0

I am having netflix worksheet in c drive by using pyspark i am not able read data.here is my code

import findspark
findspark.init()

import pyspark from pyspark.sql import SparkSession spark = SparkSession.builder.getOrCreate() spark

df=spark.read.csv("C:\netflix.csv")
df.show()

it was showing error in line df=spark.read.csv help me to run it

df=spark.read.csv("C:\netflix.csv") df.show()

 AnalysisException: Path does not exist: file:/C:
etflix.csv help me to sort it out. given path right but showing error

1 Answer 1

1

Fo Windows, Escape "\"

i.e. df=spark.read.csv("C:\\netflix.csv")

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.