cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Reading a csv file

JissMathew
New Contributor

while try to read a csv file using data frame , read csv using a  file format , but fail in case of formatting and column error while loading how the data in databricks ,how the data in databricks ,the code i used for

df = spark.read.format("csv") \
    .option("header", "true") \
    .option("quote", '"') \
    .option("delimiter", ",") \
    .option("nullValue", "") \
    .option("emptyValue", "NULL") \
    .schema(schema) \
    .load(f"{bronze_folder_path}/Test.csv")

this is actually data formatthis is actually data format

1 REPLY 1

MuthuLakshmi
Databricks Employee
Databricks Employee

@JissMathew What is the error that you are getting when trying to load?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group