xinrong-databricks commented on a change in pull request #33162: URL: https://github.com/apache/spark/pull/33162#discussion_r663239133
########## File path: python/pyspark/pandas/data_type_ops/base.py ########## @@ -318,6 +318,54 @@ def rand(self, left: IndexOpsLike, right: Any) -> SeriesOrIndex: def ror(self, left: IndexOpsLike, right: Any) -> SeriesOrIndex: return left.__or__(right) + def __neg__(self, operand: IndexOpsLike) -> SeriesOrIndex: + from pyspark.pandas.base import column_op + + return column_op(Column.__neg__)(operand) + + def __abs__(self, operand: IndexOpsLike) -> SeriesOrIndex: Review comment: `IndexOpsLike ` and `abs` are used. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org