Details

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

    Description

      We ought to support arithmetic operators (+, *) between bool Series/Indexes, following the behavior of pandas, for example

      >>> pd.Series([True, False, True]) * pd.Series([True, False, False])
      0 True
      1 False
      2 False
      dtype: bool
      

      Note: allow_bool_index_ops and allow_bool parameters of is_valid_operand_for_numeric_arithmetic can be consolidated then. Refer to discussions in https://github.com/apache/spark/pull/32785#discussion_r647100350

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              XinrongM Xinrong Meng
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: