<?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: save data to .csv in Dataflow</title>
    <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964544#M3071</link>
    <description>&lt;P&gt;please do let me know how to save the data as .csv in the pipeline&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
    <pubDate>Fri, 31 May 2024 13:54:07 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-05-31T13:54:07Z</dc:date>
    <item>
      <title>save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3962966#M3058</link>
      <description>&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;SPAN&gt;hello,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;in fabric dataflow, after some transformations, I have got the data.&lt;/P&gt;&lt;P&gt;Now I would like to save this data as csv.&lt;/P&gt;&lt;P&gt;How do I do this in notebook?&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 May 2024 05:49:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3962966#M3058</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-31T05:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3963038#M3059</link>
      <description>&lt;P&gt;Hi again&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;BR /&gt;Thanks for using Fabric Community.&lt;BR /&gt;Unfortunately, Fabric Dataflow (Gen2) itself doesn't have a built-in functionality to directly save the transformed data as an CSV file. However, you can achieve this by integrating Dataflow with Notebooks:&lt;BR /&gt;&lt;BR /&gt;1) Give the destination as lakehouse in Dataflow Gen2 and publish the Dataflow . This will create a new table in your lakehouse.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;2) Create a new notebook and run the below code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;df = spark.sql("SELECT * FROM lakehouse_1.customers_1000 ")&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;df.write.option("header",True).csv("Files/customersnew.csv")&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;3) A file will be created in the lakehouse files section:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;img /&gt;
&lt;P&gt;&lt;BR /&gt;Hope this helps. Please let me know if you have any further questions.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 31 May 2024 06:11:14 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3963038#M3059</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-31T06:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964528#M3070</link>
      <description>&lt;P&gt;Adding on top of what&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;stated, you can even use data pipelines to copy the data from lakehouse and save this data as csv in the sink supported by data pipeline if need be.&lt;/P&gt;
&lt;P&gt;Any specific reason why you want to integrate notebook?&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 13:48:25 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964528#M3070</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-05-31T13:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964544#M3071</link>
      <description>&lt;P&gt;please do let me know how to save the data as .csv in the pipeline&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 13:54:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964544#M3071</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-31T13:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964584#M3072</link>
      <description>&lt;P&gt;you can use Copy activity for the same post dataflow trigger&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;where destination can be any sink supported by data pipelines.&lt;BR /&gt;In my example I have taken lakehouse only&lt;/P&gt;</description>
      <pubDate>Fri, 31 May 2024 14:15:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/3964584#M3072</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-05-31T14:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/4095871#M3601</link>
      <description>&lt;P&gt;By any chance do you if the Notebook code can be updated to dynamically append the field "File_Instance" to the output name?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Aug 2024 16:18:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/4095871#M3601</guid>
      <dc:creator>Marcel_A</dc:creator>
      <dc:date>2024-08-12T16:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: save data to .csv</title>
      <link>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/4099482#M3612</link>
      <description>&lt;P&gt;If I understand correctly, this approach will create a folder with multiple files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a single file from a Notebook, please refer to these threads:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-just-write-a-CSV-file-to-a-lakehouse-with-a-notebook/m-p/4064426/highlight/true#M3311" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Engineering/How-do-I-just-write-a-CSV-file-to-a-lakehouse-with-a-notebook/m-p/4064426/highlight/true#M3311&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.fabric.microsoft.com/t5/Data-Engineering/Progrmatically-write-files-in-delta/m-p/4093622#M3528" target="_blank"&gt;https://community.fabric.microsoft.com/t5/Data-Engineering/Progrmatically-write-files-in-delta/m-p/4093622#M3528&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also think &lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="226550" data-lia-user-login="NandanHegde" class="lia-mention lia-mention-user"&gt;NandanHegde&lt;/a&gt;'s solution is a good solution which doesn't involve Notebook.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Aug 2024 07:02:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Dataflow/save-data-to-csv/m-p/4099482#M3612</guid>
      <dc:creator>frithjof_v</dc:creator>
      <dc:date>2024-08-14T07:02:09Z</dc:date>
    </item>
  </channel>
</rss>

