Xinrong Meng created SPARK-36003:
------------------------------------
Summary: Implement unary operator `invert` of numeric
ps.Series/Index
Key: SPARK-36003
URL: https://issues.apache.org/jira/browse/SPARK-36003
Project: Spark
Issue Type: Story
Components: PySpark
Affects Versions: 3.2.0
Reporter: Xinrong Meng
{code:java}
>>> ~ps.Series([1, 2, 3])
Traceback (most recent call last):
...
pyspark.sql.utils.AnalysisException: cannot resolve '(NOT `0`)' due to data
type mismatch: argument 1 requires boolean type, however, '`0`' is of bigint
type.;
'Project [unresolvedalias(NOT 0#1L,
Some(org.apache.spark.sql.Column$$Lambda$1365/2097273578@53165e1))]
+- Project [__index_level_0__#0L, 0#1L, monotonically_increasing_id() AS
__natural_order__#4L]
+- LogicalRDD [__index_level_0__#0L, 0#1L], false
{code}
Currently, unary operator `invert` of numeric ps.Series/Index is not
supported. We ought to implement that following pandas' behaviors.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]