<?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 resuse Pandas code in PySpark? in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25553#M17792</link>
    <description>&lt;P&gt;It  has  become so  simple once Koalas came , in place of importing Import Pandas as pd you just have to do &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import databricks.koalas as pd &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I kept as pd intentionally so that  you do not need to change the other code , run the code , there may be some issue you can face that can be answered with koalas documentation , so its easy &lt;/P&gt;</description>
    <pubDate>Wed, 23 Jun 2021 14:27:38 GMT</pubDate>
    <dc:creator>User16826994223</dc:creator>
    <dc:date>2021-06-23T14:27:38Z</dc:date>
    <item>
      <title>How to resuse Pandas code in PySpark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25551#M17790</link>
      <description>&lt;P&gt;I have single threaded Pandas code that is both not yet supported by Koalas nor easy to reimplement in PySpark. I would like to distribute this workload using Spark without rewriting all my Pandas code - is this possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jun 2021 21:44:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25551#M17790</guid>
      <dc:creator>User16783853906</dc:creator>
      <dc:date>2021-06-08T21:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to resuse Pandas code in PySpark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25552#M17791</link>
      <description>&lt;P&gt;That is exactly what koalas is for! it's a reimplementation of most of the pandas API on top of Spark. You should be able to run your pandas code as-is, or with little modification, using koalas, and let it distribute on Spark. &lt;A href="https://docs.databricks.com/languages/koalas.html" target="test_blank"&gt;https://docs.databricks.com/languages/koalas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 23:25:44 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25552#M17791</guid>
      <dc:creator>sean_owen</dc:creator>
      <dc:date>2021-06-17T23:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to resuse Pandas code in PySpark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25553#M17792</link>
      <description>&lt;P&gt;It  has  become so  simple once Koalas came , in place of importing Import Pandas as pd you just have to do &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;import databricks.koalas as pd &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I kept as pd intentionally so that  you do not need to change the other code , run the code , there may be some issue you can face that can be answered with koalas documentation , so its easy &lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 14:27:38 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25553#M17792</guid>
      <dc:creator>User16826994223</dc:creator>
      <dc:date>2021-06-23T14:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to resuse Pandas code in PySpark?</title>
      <link>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25554#M17793</link>
      <description>&lt;P&gt;This is for a specific scenario where the code is not yet supported by Koalas. One approach to consider is using a Pandas UDF, and splitting up the work in a way that allows your processing to move forward. This notebook is a great example of taking single node processing and parallelizing it using a Pandas UDF, although it may not be a perfect fit for your challenge -&amp;nbsp;&lt;A href="https://pages.databricks.com/rs/094-YMS-629/images/Fine-Grained-Time-Series-Forecasting.html" alt="https://pages.databricks.com/rs/094-YMS-629/images/Fine-Grained-Time-Series-Forecasting.html" target="_blank"&gt;https://pages.databricks.com/rs/094-YMS-629/images/Fine-Grained-Time-Series-Forecasting.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jun 2021 21:28:25 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-to-resuse-pandas-code-in-pyspark/m-p/25554#M17793</guid>
      <dc:creator>User16783853906</dc:creator>
      <dc:date>2021-06-23T21:28:25Z</dc:date>
    </item>
  </channel>
</rss>

