<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Python Notebook read Delta Table using default lakehouse in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4780748#M11356</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1269834"&gt;@MangoMagic&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Just wanted to check if the response provided was helpful. If further assistance is needed, please reach out.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Jul 2025 05:55:16 GMT</pubDate>
    <dc:creator>v-veshwara-msft</dc:creator>
    <dc:date>2025-07-30T05:55:16Z</dc:date>
    <item>
      <title>Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760322#M10831</link>
      <description>&lt;P&gt;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?&lt;/P&gt;&lt;P&gt;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&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MangoMagic_0-1752256084717.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1282521i27184EB5A63E5E43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MangoMagic_0-1752256084717.png" alt="MangoMagic_0-1752256084717.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jul 2025 17:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760322#M10831</guid>
      <dc:creator>MangoMagic</dc:creator>
      <dc:date>2025-07-11T17:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760715#M10838</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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).&lt;/P&gt;&lt;H3&gt;To Read a Delta Table from the Default Lakehouse (Mounted):&lt;/H3&gt;&lt;P&gt;If the Lakehouse is already mounted in the notebook (as it usually is) you can use a relative path like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;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)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do not use the full Fabric workspace URL (abfss://...) unless required for advanced use cases or cross-Lakehouse access.&amp;nbsp;For Tables instead of Files, use /lakehouse/default/Tables/my_table if that is where your Delta tables are written.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 14:11:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760715#M10838</guid>
      <dc:creator>Vinodh247</dc:creator>
      <dc:date>2025-07-12T14:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760723#M10841</link>
      <description>&lt;P&gt;Thanks, for this delta table why does it need to have several intermediate functions to load into a dataframe:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;dt.to_pyarrow_dataset().to_table().to_pandas() &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a better way to read delta table into a data frame to manipulate in Python notebook?&lt;/P&gt;&lt;P&gt;What is "to_pyarrow_dataset"?&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jul 2025 14:37:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760723#M10841</guid>
      <dc:creator>MangoMagic</dc:creator>
      <dc:date>2025-07-12T14:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760880#M10846</link>
      <description>&lt;P&gt;yeah you can do this as well &amp;amp; convert to pandas if needed&lt;/P&gt;&lt;P&gt;df = spark.read.format("delta").load("/lakehouse/default/Tables/my_table")&lt;BR /&gt;df.show()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason why pyarrow was used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;to_pyarrow_dataset()&lt;BR /&gt;Loads the Delta table as a &lt;A href="https://arrow.apache.org/docs/python/dataset.html" target="_new" rel="noopener"&gt;PyArrow dataset&lt;/A&gt;, which is a fast, columnar format. This enables efficient filtering, column pruning, and scanning of large data volumes.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;.to_table()&lt;BR /&gt;Converts the Arrow dataset to an in-memory Arrow Table.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;.to_pandas()&lt;BR /&gt;Finally, converts the Arrow Table to a Pandas DataFrame.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;Why not just dt.to_pandas()?&lt;/H3&gt;&lt;P&gt;Because:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;The Delta Lake Python bindings (delta-rs) are optimized for interoperability with PyArrow, not Pandas.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;They expect users to control the intermediate stages, for ex: filtering data before loading it into memory via Arrow.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jul 2025 06:18:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4760880#M10846</guid>
      <dc:creator>Vinodh247</dc:creator>
      <dc:date>2025-07-13T06:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4763503#M10931</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1269834"&gt;@MangoMagic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for raising this in Microsoft Fabric Community.&lt;/P&gt;
&lt;P&gt;Yes, you can read Delta tables using relative paths if your notebook is attached to the default Lakehouse. The Tables/YourTableName path works without needing to specify the full workspace or Lakehouse path.&lt;/P&gt;
&lt;P&gt;For example by using this code&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;df = spark.read.format("delta").load("Tables/Sales")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vveshwaramsft_0-1752575752726.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1283202i690E39A13E045128/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vveshwaramsft_0-1752575752726.png" alt="vveshwaramsft_0-1752575752726.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This works as long as the table exists under the Tables folder of the Lakehouse mounted to the current notebook.&lt;/P&gt;
&lt;P&gt;The full ABFS path is only required if you're accessing data from a different Lakehouse. You can copy the paths using the right-click context menu of the Tables in Lakehouse Explorer.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data#load-data-with-an-apache-spark-api" target="_blank"&gt;Load data into your lakehouse with a notebook - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps. Please reach out for further assistance.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jul 2025 10:39:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4763503#M10931</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-07-15T10:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4769903#M11087</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1269834"&gt;@MangoMagic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Just checking in to see if you query is resolved and if any responses were helpful.&lt;BR /&gt;Otherwise, feel free to reach out for further assistance.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Jul 2025 04:49:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4769903#M11087</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-07-21T04:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4775910#M11233</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1269834"&gt;@MangoMagic&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We wanted to kindly follow up regarding your query. If you need any further assistance, please reach out.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jul 2025 04:47:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4775910#M11233</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-07-25T04:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python Notebook read Delta Table using default lakehouse</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4780748#M11356</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/1269834"&gt;@MangoMagic&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;Just wanted to check if the response provided was helpful. If further assistance is needed, please reach out.&lt;BR /&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 05:55:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Python-Notebook-read-Delta-Table-using-default-lakehouse/m-p/4780748#M11356</guid>
      <dc:creator>v-veshwara-msft</dc:creator>
      <dc:date>2025-07-30T05:55:16Z</dc:date>
    </item>
  </channel>
</rss>

