Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
sjpark
Frequent Visitor

Read multiple files in Fabric Notebook

Hi, i'm trying to display data from Fabric Lakehouse's file system using notebook.

 

I suceeded load csv file to Lakehouse's file system from Lakehouse's Table with using notebook.

 

And now, I tried to read that csv files using this code, but it failed.

 

df = spark.read.format("csv").option("header","true").load("Files/sjpark_test_result_job/**")

display(df)

 

 

 
I tried 
load("Files/sjpark_test_result_job/**.csv")load("Files/sjpark_test_result_job/*.csv")
but it doesn't work.
 
And I also tried below code, but it won't work.
 

df = spark.read.option("header","true").option("inferSchema", "true").csv("Files/sjpark_test_result_job")

display(df)

 
The error message is 'PATH NOT FOUND"
 
 
My question is, how can i read mutiple files in Lakehouse file system using notebook?
I appriciate all opinion, thanks a lot.
Park.
1 ACCEPTED SOLUTION
v-nikhilan-msft
Community Support
Community Support

Hi @sjpark 
Thanks for using Fabric Community.
You can use the below code:
df = spark.read.format("csv").option("header","true").load("Files/sjpark_test_result_job")
display(df)

I have created a repro for you. 

vnikhilanmsft_0-1709700765169.png

Hope this helps. Please let me know if you have any other questions.

View solution in original post

3 REPLIES 3
sjpark
Frequent Visitor

Thanks a lot @v-nikhilan-msft !!
I solved it!

Wish you a best luck.

Hi @sjpark 
Glad that your query got resolved. Thank you for appreciating it. I'm happy to help. Please continue using Fabric Community for any help regarding your queries.
Good luck to you as well!

v-nikhilan-msft
Community Support
Community Support

Hi @sjpark 
Thanks for using Fabric Community.
You can use the below code:
df = spark.read.format("csv").option("header","true").load("Files/sjpark_test_result_job")
display(df)

I have created a repro for you. 

vnikhilanmsft_0-1709700765169.png

Hope this helps. Please let me know if you have any other questions.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

JanFabricDE_carousel

Fabric Monthly Update - January 2025

Explore the power of Python Notebooks in Fabric!

JanFabricDW_carousel

Fabric Monthly Update - January 2025

Unlock the latest Fabric Data Warehouse upgrades!

JanFabricDF_carousel

Fabric Monthly Update - January 2025

Take your data replication to the next level with Fabric's latest updates!