[ https://issues.apache.org/jira/browse/SPARK-36142?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hyukjin Kwon resolved SPARK-36142. ---------------------------------- Fix Version/s: 3.2.0 Resolution: Fixed Issue resolved by pull request 33521 [https://github.com/apache/spark/pull/33521] > Adjust exponentiation between Series with missing values and bool literal to > follow pandas > ------------------------------------------------------------------------------------------ > > Key: SPARK-36142 > URL: https://issues.apache.org/jira/browse/SPARK-36142 > Project: Spark > Issue Type: Sub-task > Components: PySpark > Affects Versions: 3.2.0 > Reporter: Xinrong Meng > Assignee: Yikun Jiang > Priority: Major > Fix For: 3.2.0 > > > Currently, exponentiation between ExtentionDtypes and bools is not consistent > with pandas' behavior. > > {code:java} > >>> 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 > {code} > We ought to adjust that. > -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org