Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-40376

`np.bool` will be deprecated

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.3.0
    • 3.3.3, 3.4.0
    • Optimizer
    • None

    Description

      Using `np.bool` generates this warning: 

      UserWarning: toPandas attempted Arrow optimization because 'spark.sql.execution.arrow.pyspark.enabled' is set to true, but has reached the error below and can not continue. Note that 'spark.sql.execution.arrow.pyspark.fallback.enabled' does not have an effect on failures in the middle of computation.
      3070E                     `np.bool` is a deprecated alias for the builtin `bool`. To silence this warning, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
      3071E                   Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

       

      See Numpy's deprecation statement here: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations

      Attachments

        Issue Links

          Activity

            People

              elhoussinet Elhoussine Talab
              elhoussinet Elhoussine Talab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: