You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean R. Owen (Jira)" <ji...@apache.org> on 2023/03/03 00:49:00 UTC
[jira] [Resolved] (SPARK-41718) Numpy 1.24 breaks PySpark due to use of `np.bool` instead of `np.bool_` in many places
[ https://issues.apache.org/jira/browse/SPARK-41718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean R. Owen resolved SPARK-41718.
----------------------------------
Resolution: Duplicate
> Numpy 1.24 breaks PySpark due to use of `np.bool` instead of `np.bool_` in many places
> --------------------------------------------------------------------------------------
>
> Key: SPARK-41718
> URL: https://issues.apache.org/jira/browse/SPARK-41718
> Project: Spark
> Issue Type: Bug
> Components: PySpark
> Affects Versions: 3.3.0
> Reporter: Phillip Cloud
> Priority: Major
>
> In numpy 1.24, `numpy.bool` was removed (it was deprecated prior to 1.24). This causes many APIs in pyspark to stop working because an AttributeError is raised. The alternative is to use `numpy.bool_` (trailing underscore).
--
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