itholic commented on code in PR #41514:
URL: https://github.com/apache/spark/pull/41514#discussion_r1227505892
##########
python/pyspark/pandas/data_type_ops/num_ops.py:
##########
@@ -213,37 +214,44 @@ def abs(self, operand: IndexOpsLike) -> IndexOpsLike:
F.abs(operand.spark.column), field=operand._internal.data_fields[0]
)
+ def eq(self, left: IndexOpsLike, right: Any) -> SeriesOrIndex:
+ try:
+ _sanitize_list_like(right)
+ except TypeError:
Review Comment:
Because currently `eq` only support for list-like object properly.
Added some comments and test for `NullOps` as well.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]