<?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: Plotting in pyspark.pandas  Uncaught ReferenceError Plotly is not defined in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18607#M12380</link>
    <description>&lt;P&gt;Just wanted to follow up on this, using matplotlib as the backend circumvents this error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ps.set_option("plotting.backend", "matplotlib")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2022 15:02:31 GMT</pubDate>
    <dc:creator>Data_Cowboy</dc:creator>
    <dc:date>2022-06-06T15:02:31Z</dc:date>
    <item>
      <title>Plotting in pyspark.pandas  Uncaught ReferenceError Plotly is not defined</title>
      <link>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18606#M12379</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to plot using pyspark.pandas running this sample code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;speed = [0.1, 17.5, 40, 48, 52, 69, 88]
lifespan = [2, 8, 70, 1.5, 25, 12, 28]
index = ['snail', 'pig', 'elephant',
         'rabbit', 'giraffe', 'coyote', 'horse']
psdf = ps.DataFrame({'speed': speed,
                     'lifespan': lifespan}, index=index)
psdf.plot.bar()&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When I run the code, it returns the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Error Message"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/1809iA42C3B0176D33D2E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Error Message" alt="Error Message" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code can be found in this notebook from Microsoft (https://docs.microsoft.com/en-us/azure/databricks/_static/notebooks/pandas-to-pandas-api-on-spark-in-10-minutes.html). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something that I need to define Plotly? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I may provide any additional information. Thank you for your assistance. &lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 14:44:26 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18606#M12379</guid>
      <dc:creator>Data_Cowboy</dc:creator>
      <dc:date>2022-06-06T14:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting in pyspark.pandas  Uncaught ReferenceError Plotly is not defined</title>
      <link>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18607#M12380</link>
      <description>&lt;P&gt;Just wanted to follow up on this, using matplotlib as the backend circumvents this error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ps.set_option("plotting.backend", "matplotlib")&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 15:02:31 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18607#M12380</guid>
      <dc:creator>Data_Cowboy</dc:creator>
      <dc:date>2022-06-06T15:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting in pyspark.pandas  Uncaught ReferenceError Plotly is not defined</title>
      <link>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18608#M12381</link>
      <description>&lt;P&gt;can you check the &lt;A href="https://docs.databricks.com/notebooks/visualizations/index.html" alt="https://docs.databricks.com/notebooks/visualizations/index.html" target="_blank"&gt;visualisation docs&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;There is a page for plotly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:50:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18608#M12381</guid>
      <dc:creator>-werners-</dc:creator>
      <dc:date>2022-06-07T09:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Plotting in pyspark.pandas  Uncaught ReferenceError Plotly is not defined</title>
      <link>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18609#M12382</link>
      <description>&lt;P&gt;Thank you @Werner Stinckens​&amp;nbsp;. I was able to find the plotly documentation listed below and setting the output_type and calling displayHTML() helped remedy the error. &lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 12:27:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/plotting-in-pyspark-pandas-uncaught-referenceerror-plotly-is-not/m-p/18609#M12382</guid>
      <dc:creator>Data_Cowboy</dc:creator>
      <dc:date>2022-06-07T12:27:34Z</dc:date>
    </item>
  </channel>
</rss>

