You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2023/01/05 03:20:00 UTC
[jira] [Resolved] (SPARK-41825) DataFrame.show formatting int as double
[ https://issues.apache.org/jira/browse/SPARK-41825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-41825.
----------------------------------
Fix Version/s: 3.4.0
Resolution: Fixed
Issue resolved by pull request 39396
[https://github.com/apache/spark/pull/39396]
> DataFrame.show formatting int as double
> ---------------------------------------
>
> Key: SPARK-41825
> URL: https://issues.apache.org/jira/browse/SPARK-41825
> Project: Spark
> Issue Type: Sub-task
> Components: Connect
> Affects Versions: 3.4.0
> Reporter: Sandeep Singh
> Assignee: Ruifeng Zheng
> Priority: Major
> Fix For: 3.4.0
>
>
> {code:java}
> File "/Users/s.singh/personal/spark-oss/python/pyspark/sql/connect/dataframe.py", line 650, in pyspark.sql.connect.dataframe.DataFrame.fillna
> Failed example:
> df.na.fill(50).show()
> Expected:
> +---+------+-----+----+
> |age|height| name|bool|
> +---+------+-----+----+
> | 10| 80.5|Alice|null|
> | 5| 50.0| Bob|null|
> | 50| 50.0| Tom|null|
> | 50| 50.0| null|true|
> +---+------+-----+----+
> Got:
> +----+------+-----+----+
> | age|height| name|bool|
> +----+------+-----+----+
> |10.0| 80.5|Alice|null|
> | 5.0| 50.0| Bob|null|
> |50.0| 50.0| Tom|null|
> |50.0| 50.0| null|true|
> +----+------+-----+----+
> <BLANKLINE>{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org