You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "pralabhkumar (Jira)" <ji...@apache.org> on 2021/11/18 14:57:00 UTC

[jira] [Comment Edited] (SPARK-37188) pyspark.pandas histogram accepts the title option but does not add a title to the plot

    [ https://issues.apache.org/jira/browse/SPARK-37188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17445978#comment-17445978 ] 

pralabhkumar edited comment on SPARK-37188 at 11/18/21, 2:56 PM:
-----------------------------------------------------------------

IMHO , the issue is in pyspark.pandas.plot plotly.py plot_histogram method .  arguments (kwargs) , passed by user are not passed to plotly when creating the figure. Therefore this issue is not just with title but can happen with other arguments like "activeshape" , "font". 

Once I passes the user argument to go.Layout(title=kwargs.get("title"))

, title issue is not happening(provided user passes title).  I think , we should pass all the arguments provided by user and expected by go.Layout.  Similarly for go.Bar

[~yikunkero]  [~hyukjin.kwon]  . Please let me know , if I my understanding is correct , I can create a PR for it . 


was (Author: pralabhkumar):
IMHO , the issue is in pyspark.pandas.plot plotly.py plot_histogram method .  arguments (kwargs) , passed by user are not passed to plotly when creating the figure. Therefore this issue is not just with title but can happen with other arguments like "activeshape" , "font". 

Once I passes the user argument to go.Layout(title=kwargs.get("title"))

, title issue is not happening(provided user passes title).  I think , we should pass all the arguments provided by user and expected by go.Layout.  Similarly for go.Bar

[~yikunkero] . Please let me know , if I my understanding is correct , I can create a PR for it . 

> pyspark.pandas histogram accepts the title option but does not add a title to the plot
> --------------------------------------------------------------------------------------
>
>                 Key: SPARK-37188
>                 URL: https://issues.apache.org/jira/browse/SPARK-37188
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 3.2.0
>            Reporter: Chuck Connell
>            Priority: Major
>
> In pyspark.pandas if you write a line like this
> {quote}DF.plot.hist(bins=20, title="US Counties -- FullVaxPer100")
> {quote}
> it compiles and runs, but the plot has no title.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org