[
https://issues.apache.org/jira/browse/SPARK-35681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Xinrong Meng resolved SPARK-35681.
----------------------------------
Resolution: Duplicate
> Support arithmetic operators (+, *) among bool Series/Index
> -----------------------------------------------------------
>
> Key: SPARK-35681
> URL: https://issues.apache.org/jira/browse/SPARK-35681
> Project: Spark
> Issue Type: Sub-task
> Components: PySpark
> Affects Versions: 3.2.0
> Reporter: Xinrong Meng
> Priority: Major
>
> We ought to support arithmetic operators (+, *) between bool Series/Indexes,
> following the behavior of pandas, for example
> {code:java}
> >>> pd.Series([True, False, True]) * pd.Series([True, False, False])
> 0 True
> 1 False
> 2 False
> dtype: bool
> {code}
> 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
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]