You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Dongjoon Hyun (Jira)" <ji...@apache.org> on 2024/10/04 22:07:00 UTC
[jira] [Created] (SPARK-49882) Handle or document `NumPy 2.x` difference
Dongjoon Hyun created SPARK-49882:
-------------------------------------
Summary: Handle or document `NumPy 2.x` difference
Key: SPARK-49882
URL: https://issues.apache.org/jira/browse/SPARK-49882
Project: Spark
Issue Type: Sub-task
Components: PySpark
Affects Versions: 4.0.0
Reporter: Dongjoon Hyun
New `NumPy 2` seems to have a different output style in Python 3.13. Of course, the values are correct.
- https://github.com/apache/spark/actions/runs/11186188886/job/31100777649
{code}
**********************************************************************
File "/__w/spark/spark/python/pyspark/core/rdd.py", line 2463, in __main__.RDD.sampleStdev
Failed example:
sc.parallelize([1, 2, 3]).sampleStdev()
Expected:
1.0
Got:
np.float64(1.0)
**********************************************************************
File "/__w/spark/spark/python/pyspark/core/rdd.py", line 2436, in __main__.RDD.stdev
Failed example:
sc.parallelize([1, 2, 3]).stdev()
Expected:
0.816...
Got:
np.float64(0.816496580927726)
**********************************************************************
{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