xinrong-databricks commented on a change in pull request #33162:
URL: https://github.com/apache/spark/pull/33162#discussion_r663238140



##########
File path: python/pyspark/pandas/base.py
##########
@@ -317,7 +317,7 @@ def copy(self: IndexOpsLike) -> IndexOpsLike:
 
     # arithmetic operators
     def __neg__(self: IndexOpsLike) -> IndexOpsLike:
-        return cast(IndexOpsLike, column_op(Column.__neg__)(self))
+        return cast(IndexOpsLike, self._dtype_op.__neg__(self))

Review comment:
       Good idea.




-- 
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

Reply via email to