You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2022/03/21 09:46:23 UTC

[GitHub] [spark] Yikun commented on a change in pull request #35782: [SPARK-38479][PYTHON] Add `Series.duplicated` to indicate duplicate Series values

Yikun commented on a change in pull request #35782:
URL: https://github.com/apache/spark/pull/35782#discussion_r830896890



##########
File path: python/pyspark/pandas/series.py
##########
@@ -1603,6 +1603,83 @@ def to_list(self) -> List:
 
     tolist = to_list
 
+    def duplicated(self, keep: str = "first") -> "Series":

Review comment:
       ```suggestion
       def duplicated(self, keep: Union[bool, str] = "first") -> "Series":
   ```
   
   Looks like `keep` can be str or bool, I also submit a fix on other wrong hint https://github.com/apache/spark/pull/35920

##########
File path: python/pyspark/pandas/series.py
##########
@@ -1603,6 +1603,83 @@ def to_list(self) -> List:
 
     tolist = to_list
 
+    def duplicated(self, keep: str = "first") -> "Series":

Review comment:
       ```suggestion
       def duplicated(self, keep: Union[bool, str] = "first") -> "Series":
   ```
   
   Looks like `keep` can be str or bool, I also submit a fix on other wrong hints https://github.com/apache/spark/pull/35920




-- 
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-unsubscribe@spark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org