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



##########
File path: python/pyspark/pandas/data_type_ops/base.py
##########
@@ -314,9 +320,11 @@ def __or__(self, left: IndexOpsLike, right: Any) -> 
SeriesOrIndex:
         raise TypeError("Bitwise or can not be applied to %s." % 
self.pretty_name)
 
     def rand(self, left: IndexOpsLike, right: Any) -> SeriesOrIndex:

Review comment:
       We disallow `List, Tuple, Dict, Set` for `right`. The function added is 
to raise a TypeError for these list-likes. Sorry if there is any confusion.




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

Reply via email to