Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
3.2.0
-
None
-
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
- duplicates
-
SPARK-35601 Complete arithmetic operators involving bool literals, Series, and Index
- Resolved