<?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: dataframe to table using python in notebook in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4351714#M5913</link>
    <description>&lt;P&gt;sorry for the late respose&amp;nbsp;&lt;BR /&gt;although saveasTable is working it was creating the table only when i mentioned table name without location and i am unable to find at what loaction the table was being created and if use the partial path or complete path i was returning error&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2025 10:10:33 GMT</pubDate>
    <dc:creator>munindra</dc:creator>
    <dc:date>2025-01-06T10:10:33Z</dc:date>
    <item>
      <title>dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4346821#M5824</link>
      <description>&lt;P&gt;i am working with vector embedding inside the notebook using python while i store the result into the dataframe i am unable to create table inside the lakehouse out of it&amp;nbsp; when i am using python. but i need to work in python do this process and not with with pyspark and this is a intermediate step inisde the notebook so i can't use pipeline to convert csv to table .so anyone help regarding this issue.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 03:41:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4346821#M5824</guid>
      <dc:creator>munindra</dc:creator>
      <dc:date>2024-12-31T03:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4347072#M5830</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out to the Microsoft fabric community forum.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To create a table in the lakehouse directly from a DataFrame using Python, you can utilize the Pandas API to write the DataFrame to a format compatible with the lakehouse, such as Parquet or Delta. Below is a step-by-step guide:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Before adding any code to your notebook, please ensure that you manually select Python in the notebook to execute the process, as shown in the picture below:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vtsaipranay_0-1735631192673.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1220917i96BA5B7595E912A0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vtsaipranay_0-1735631192673.png" alt="vtsaipranay_0-1735631192673.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;Ensure you have the necessary libraries installed. You can install them using pip if they are not already installed use the below code to install:&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;!pip install pandas pyarrow&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Please use Pandas to save your DataFrame as a Parquet file. Parquet is a columnar storage format that optimizes both storage efficiency and query performance. Us&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; import pandas as pd&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; df.to_parquet('/lakehouse/default/Files/your_table.parquet')# assume dataframe as df.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Use the lakehouse API to load the Parquet file into a table. Also, this step might vary depending on the specific lakehouse platform you are using and for your reference below is the&amp;nbsp;&lt;SPAN&gt;function to load DataFrame into the lakehouse table.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;load_to_lakehouse_table(df, table_name='your_table')&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For further information regarding pandas, please refer to the official Microsoft document below.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-science/read-write-pandas" target="_blank"&gt;Read and write data with Pandas - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope my suggestions give you good ideas, if you need any further assistance, please feel free to reach out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us 'Kudos' and consider 'Accept it as a solution' to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Dec 2024 08:42:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4347072#M5830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-12-31T08:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4349088#M5879</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 02:13:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4349088#M5879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-03T02:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4351556#M5909</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to follow up on our previous suggestions regarding &lt;SPAN&gt;dataframe to table using python in notebook&lt;/SPAN&gt;. We would love to hear back from you to ensure we can assist you further.&lt;/P&gt;
&lt;P&gt;If my response has addressed your query, please accept it as a solution and give a ‘Kudos’ so other members can easily find it. Please let us know if there’s anything else we can do to help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 08:03:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4351556#M5909</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-06T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4351714#M5913</link>
      <description>&lt;P&gt;sorry for the late respose&amp;nbsp;&lt;BR /&gt;although saveasTable is working it was creating the table only when i mentioned table name without location and i am unable to find at what loaction the table was being created and if use the partial path or complete path i was returning error&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2025 10:10:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4351714#M5913</guid>
      <dc:creator>munindra</dc:creator>
      <dc:date>2025-01-06T10:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4358546#M6017</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We really apologize for delay in response, and thanks for bringing your concerns to us as you mentioned you are unable to find the location of the table as a result this will be stored at the DEFAULT lake house please once have a look at that default location you can find the table over there and also you have raised an one more concern that if you are giving the location or path you are not able to create a table and it is throwing the error to fix the issue that you are facing please refer the below document mention and for your convenience I have also pasted the screenshot please have&amp;nbsp; a look on it.&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-pandas-api" target="_blank"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/lakehouse-notebook-load-data#load-data-with-pandas-api&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vtsaipranay_0-1736502053133.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1224468i72A9B3B96F4E9983/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vtsaipranay_0-1736502053133.png" alt="vtsaipranay_0-1736502053133.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, to Use Python experience on Notebook please refer the below provided document:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook#public-preview-known-limitations" target="_blank"&gt;Use Python experience on Notebook - Microsoft Fabric | Microsoft Learn&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post&amp;nbsp;helps, then please give us 'Kudos' and consider 'Accept it as a solution' to help the other members find it more quickly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 09:43:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4358546#M6017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-10T09:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4360100#M6041</link>
      <description>&lt;P&gt;In the vanilla Python Notebook experience (preview), you can find code snippets for writing to delta table without using Spark:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook#browse-code-snippets" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/fabric/data-engineering/using-python-experience-on-notebook#browse-code-snippets&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are also some code examples:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.reddit.com/r/MicrosoftFabric/s/CtyqVHSDKq" target="_blank"&gt;https://www.reddit.com/r/MicrosoftFabric/s/CtyqVHSDKq&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you will need to use the abfss path of the Lakehouse in order to do this.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jan 2025 10:56:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4360100#M6041</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2025-01-12T10:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4362505#M6081</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;,&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;&lt;BR /&gt;I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN data-teams="true"&gt;&lt;BR /&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 04:46:43 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4362505#M6081</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-14T04:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: dataframe to table using python in notebook</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4369309#M6192</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/903380"&gt;@munindra&lt;/a&gt;&amp;nbsp;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 14:02:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/dataframe-to-table-using-python-in-notebook/m-p/4369309#M6192</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-01-17T14:02:58Z</dc:date>
    </item>
  </channel>
</rss>

