Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-36031 Keep same behavior with pandas for operations of series with nan
  3. SPARK-36142

Adjust exponentiation between Series with missing values and bool literal to follow pandas

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • PySpark
    • None

    Description

      Currently, exponentiation between ExtentionDtypes and bools is not consistent with pandas' behavior.

       

       >>> pser = pd.Series([1, 2, np.nan], dtype=float)
       >>> psser = ps.from_pandas(pser)
       >>> pser ** False
       0 1.0
       1 1.0
       2 1.0
       dtype: float64
       >>> psser ** False
       0 1.0
       1 1.0
       2 NaN
       dtype: float64
      

      We ought to adjust that.

       

      Attachments

        Activity

          People

            yikunkero Yikun Jiang
            XinrongM Xinrong Meng
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: