xinrong-databricks commented on a change in pull request #32592:
URL: https://github.com/apache/spark/pull/32592#discussion_r645748710
##########
File path: python/pyspark/pandas/data_type_ops/base.py
##########
@@ -166,3 +175,11 @@ def rmod(self, left, right) -> Union["Series", "Index"]:
def rpow(self, left, right) -> Union["Series", "Index"]:
raise TypeError("Exponentiation can not be applied to %s." %
self.pretty_name)
+
+ def restore(self, col):
Review comment:
Added.
##########
File path: python/pyspark/pandas/data_type_ops/base.py
##########
@@ -166,3 +175,11 @@ def rmod(self, left, right) -> Union["Series", "Index"]:
def rpow(self, left, right) -> Union["Series", "Index"]:
raise TypeError("Exponentiation can not be applied to %s." %
self.pretty_name)
+
+ def restore(self, col):
+ """Restore column when to_pandas."""
+ return col
+
+ def prepare(self, col):
Review comment:
Added.
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]