[
https://issues.apache.org/jira/browse/SPARK-49796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xinrong Meng updated SPARK-49796:
---------------------------------
Parent: SPARK-50111 (was: SPARK-49530)
> Support pie subplots with plotly backend
> ----------------------------------------
>
> Key: SPARK-49796
> URL: https://issues.apache.org/jira/browse/SPARK-49796
> Project: Spark
> Issue Type: Sub-task
> Components: Connect, PS, PySpark
> Affects Versions: 4.0.0
> Reporter: Xinrong Meng
> Priority: Major
>
> In Pandas
> {code:java}
> >>> import pandas as pd
> >>> pd.options.plotting.backend = "plotly"
> >>> df = pd.DataFrame({'mass': [0.330, 4.87 , 5.97],
> ... 'radius': [2439.7, 6051.8, 6378.1]},
> ... index=['Mercury', 'Venus', 'Earth'])
> >>> df
> mass radius
> Mercury 0.33 2439.7
> Venus 4.87 6051.8
> Earth 5.97 6378.1
> >>> fig = df.plot.pie()
> Traceback (most recent call last):
> ...
> raise ValueError("pie requires either y column or 'subplots=True'")
> ValueError: pie requires either y column or 'subplots=True'
> >>> fig = df.plot.pie(subplots=True)
> Traceback (most recent call last):
> ...
> NotImplementedError: kind='pie' not yet supported for
> plotting.backend='plotly'
> >>> pd.__version__
> '2.2.2' {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]