You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Phillip Cloud (Jira)" <ji...@apache.org> on 2022/12/26 12:55:00 UTC

[jira] [Created] (SPARK-41718) Numpy 1.24 breaks PySpark due to use of `np.bool` instead of `np.bool_` in many places

Phillip Cloud created SPARK-41718:
-------------------------------------

             Summary: 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


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