<?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 How can we save a data frame in Docx format using pyspark? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18991#M12666</link>
    <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to save a data frame into a document but it returns saying that the below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.ClassNotFoundException: Failed to find data source: docx. Please find packages at &lt;A href="http://spark.apache.org/third-party-projects.htm&amp;nbsp;&amp;nbsp;" target="test_blank"&gt;http://spark.apache.org/third-party-projects.htm&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;           #f_data is my dataframe with data
           f_data.write.format("docx").save("dbfs:/FileStore/test/test.csv")
           display(f_data)
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that i could save files of CSV, text and JSON format but is there any way to save a docx file using pyspark?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Dec 2022 18:29:02 GMT</pubDate>
    <dc:creator>rammy</dc:creator>
    <dc:date>2022-12-02T18:29:02Z</dc:date>
    <item>
      <title>How can we save a data frame in Docx format using pyspark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18991#M12666</link>
      <description>&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to save a data frame into a document but it returns saying that the below error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;java.lang.ClassNotFoundException: Failed to find data source: docx. Please find packages at &lt;A href="http://spark.apache.org/third-party-projects.htm&amp;nbsp;&amp;nbsp;" target="test_blank"&gt;http://spark.apache.org/third-party-projects.htm&amp;nbsp;&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;           #f_data is my dataframe with data
           f_data.write.format("docx").save("dbfs:/FileStore/test/test.csv")
           display(f_data)
&amp;nbsp;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note that i could save files of CSV, text and JSON format but is there any way to save a docx file using pyspark?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 18:29:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18991#M12666</guid>
      <dc:creator>rammy</dc:creator>
      <dc:date>2022-12-02T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can we save a data frame in Docx format using pyspark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18992#M12667</link>
      <description>&lt;P&gt;Hi @Ramesh Bathini​&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only the below file formats are supported&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;text&lt;/LI&gt;&lt;LI&gt;csv&lt;/LI&gt;&lt;LI&gt;ldap&lt;/LI&gt;&lt;LI&gt;json&lt;/LI&gt;&lt;LI&gt;parquet&lt;/LI&gt;&lt;LI&gt;orc&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Source Code for DataframeWriter:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala" target="test_blank"&gt;https://github.com/apache/spark/blob/master/sql/core/src/main/scala/org/apache/spark/sql/DataFrameWriter.scala&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 14:01:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18992#M12667</guid>
      <dc:creator>Harun</dc:creator>
      <dc:date>2022-12-07T14:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: How can we save a data frame in Docx format using pyspark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18993#M12668</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot do it from Pyspark, but you can try to use Pandas to save to Excell. There is no Docx&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2023 23:36:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-we-save-a-data-frame-in-docx-format-using-pyspark/m-p/18993#M12668</guid>
      <dc:creator>jose_gonzalez</dc:creator>
      <dc:date>2023-01-25T23:36:58Z</dc:date>
    </item>
  </channel>
</rss>

