[ 
https://issues.apache.org/jira/browse/SPARK-46126?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon resolved SPARK-46126.
----------------------------------
    Fix Version/s: 4.0.0
       Resolution: Fixed

Issue resolved by pull request 44042
[https://github.com/apache/spark/pull/44042]

> Fix the doctest in pyspark.pandas.frame.DataFrame.to_dict (Python 3.12)
> -----------------------------------------------------------------------
>
>                 Key: SPARK-46126
>                 URL: https://issues.apache.org/jira/browse/SPARK-46126
>             Project: Spark
>          Issue Type: Sub-task
>          Components: PySpark
>    Affects Versions: 4.0.0
>            Reporter: Hyukjin Kwon
>            Assignee: Hyukjin Kwon
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 4.0.0
>
>
> {code}
> File "/__w/spark/spark/python/pyspark/pandas/frame.py", line 2515, in 
> pyspark.pandas.frame.DataFrame.to_dict
> Failed example:
>     df.to_dict(into=OrderedDict)
> Expected:
>     OrderedDict([('col1', OrderedDict([('row1', 1), ('row2', 2)])), ('col2', 
> OrderedDict([('row1', 0.5), ('row2', 0.75)]))])
> Got:
>     OrderedDict({'col1': OrderedDict({'row1': 1, 'row2': 2}), 'col2': 
> OrderedDict({'row1': 0.5, 'row2': 0.75})})
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to