[ https://issues.apache.org/jira/browse/SPARK-46147?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon updated SPARK-46147: --------------------------------- Labels: (was: pull-request-available) > Fix the doctest in pyspark.pandas.series.Series.to_dict (Python 3.12) > --------------------------------------------------------------------- > > Key: SPARK-46147 > URL: https://issues.apache.org/jira/browse/SPARK-46147 > Project: Spark > Issue Type: Sub-task > Components: PySpark > Affects Versions: 4.0.0 > Reporter: Hyukjin Kwon > Assignee: Hyukjin Kwon > Priority: Minor > 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