zhengruifeng commented on code in PR #48256:
URL: https://github.com/apache/spark/pull/48256#discussion_r1776488026


##########
python/pyspark/sql/plot/plotly.py:
##########
@@ -27,4 +27,18 @@
 def plot_pyspark(data: "DataFrame", kind: str, **kwargs: Any) -> "Figure":
     import plotly
 
+    if kind == "pie":
+        return plot_pie(data, **kwargs)
+
     return plotly.plot(PySparkPlotAccessor.plot_data_map[kind](data), kind, 
**kwargs)
+
+
+def plot_pie(data: "DataFrame", **kwargs: Any) -> "Figure":

Review Comment:
   let's keep it, we can support subplot later



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to