<?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: How to export the output data in the Excel format into the dbfs location in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/120034#M46036</link>
    <description>&lt;P&gt;As shared above I tested it and worked fine for loading and updating and saving&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt;&lt;SPAN&gt; openpyxl&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;wb &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; openpyxl.load_workbook(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Test.xlsx&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ws &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; wb.active&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; row &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; ws.iter_rows():&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;&lt;SPAN&gt;([col.value &lt;/SPAN&gt;&lt;SPAN&gt;for&lt;/SPAN&gt;&lt;SPAN&gt; col &lt;/SPAN&gt;&lt;SPAN&gt;in&lt;/SPAN&gt;&lt;SPAN&gt; row]) #show all data&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;ws[&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;A1&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;]&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Data'&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;wb.save(&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;Test.xlsx&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 23 May 2025 07:56:48 GMT</pubDate>
    <dc:creator>haidereli</dc:creator>
    <dc:date>2025-05-23T07:56:48Z</dc:date>
    <item>
      <title>How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17442#M11463</link>
      <description>&lt;P&gt;Is there any way to export the ​output data in the Excel format into the dbfs?, I'm only able to do it in the CSV format &lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 10:42:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17442#M11463</guid>
      <dc:creator>Heman2</dc:creator>
      <dc:date>2022-12-10T10:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17443#M11464</link>
      <description>&lt;P&gt;@Hemanth A&amp;nbsp;try this code. &lt;/P&gt;&lt;P&gt;import openpyxl&lt;/P&gt;&lt;P&gt;wb = openpyxl.load_workbook('/dbfs/PATH/test.xlsx')&lt;/P&gt;&lt;P&gt;ws = wb.active&lt;/P&gt;&lt;P&gt;for row in ws.iter_rows():&lt;/P&gt;&lt;P&gt;    print([col.value for col in row])&lt;/P&gt;&lt;P&gt;ws['A1']='A1'&lt;/P&gt;&lt;P&gt;wb.save('/dbfs/PATH/test.xlsx')&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;# Load its modified version and print values&lt;/P&gt;&lt;P&gt;wb = openpyxl.load_workbook('/dbfs/PATH/test.xlsx')&lt;/P&gt;&lt;P&gt;ws = wb.active&lt;/P&gt;&lt;P&gt;for row in ws.iter_rows():&lt;/P&gt;&lt;P&gt;    print([col.value for col in row])&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;&lt;P&gt;​&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 11:02:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17443#M11464</guid>
      <dc:creator>Harish2122</dc:creator>
      <dc:date>2022-12-10T11:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17444#M11465</link>
      <description>&lt;P&gt;If you are on Azure just create a logic app (or Power Automate) which will be triggered by Rest API call and will do convertion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want you can also save the dataframe directly to Excel using native spark code. It is really easy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;df1 = df.to_pandas_on_spark()
df1.to_excel("output.xlsx")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 12:11:39 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17444#M11465</guid>
      <dc:creator>Hubert-Dudek</dc:creator>
      <dc:date>2022-12-10T12:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17445#M11466</link>
      <description>&lt;P&gt;Hi @Hemanth A​&amp;nbsp;databricks does not support excel format if you really want to export excel files you have to use python or pandas for the same.&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 17:28:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/17445#M11466</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2022-12-10T17:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/57389#M30768</link>
      <description>&lt;P&gt;The easiest way I fount is to create a dashboard and export from there. It will enable a context menu with options to export to some file types including csv and excel.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2024 19:13:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/57389#M30768</guid>
      <dc:creator>Sobreiro</dc:creator>
      <dc:date>2024-01-15T19:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to export the output data in the Excel format into the dbfs location</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/120034#M46036</link>
      <description>&lt;P&gt;As shared above I tested it and worked fine for loading and updating and saving&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV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;/SPAN&gt;&lt;SPAN&gt;Test.xlsx&lt;/SPAN&gt;&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 May 2025 07:56:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-export-the-output-data-in-the-excel-format-into-the-dbfs/m-p/120034#M46036</guid>
      <dc:creator>haidereli</dc:creator>
      <dc:date>2025-05-23T07:56:48Z</dc:date>
    </item>
  </channel>
</rss>

