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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

Reply
MangoMagic
Regular Visitor

Python Notebook read Delta Table using default lakehouse

In python notebook is there a way to read delta table from default lakehouse which is already mounted instead of using absolute path with workspace?

Would prefer to use relative paths, the code snippets for writing to lakehouse table have this option but when reading from table the code snippet seems to only have option full path 😕 

MangoMagic_0-1752256084717.png

 

2 REPLIES 2
Vinodh247
Resolver III
Resolver III

 

Yes, you can read Delta tables in Microsoft Fabric Notebooks using relative paths, similar to how you write them. The key is to reference the mounted Lakehouse path, typically under /lakehouse/default (for the default Lakehouse).

To Read a Delta Table from the Default Lakehouse (Mounted):

If the Lakehouse is already mounted in the notebook (as it usually is) you can use a relative path like

 

 from deltalake import DeltaTable # Relative path to the delta table inside the default lakehouse relative_table_path = "/lakehouse/default/Files/tables/my_table" # Read delta table dt = DeltaTable(relative_table_path) df = dt.to_pyarrow_dataset().to_table().to_pandas() display(df) 

Do not use the full Fabric workspace URL (abfss://...) unless required for advanced use cases or cross-Lakehouse access. For Tables instead of Files, use /lakehouse/default/Tables/my_table if that is where your Delta tables are written.

 

 

Thanks, for this delta table why does it need to have several intermediate functions to load into a dataframe:

dt.to_pyarrow_dataset().to_table().to_pandas() 

 

Is there a better way to read delta table into a data frame to manipulate in Python notebook?

What is "to_pyarrow_dataset"?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

Check out the June 2025 Fabric update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.