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



##########
File path: python/pyspark/pandas/indexes/multi.py
##########
@@ -893,6 +893,70 @@ def drop(self, codes: List[Any], level: 
Optional[Union[int, Name]] = None) -> "M
         )
         return cast(MultiIndex, DataFrame(internal).index)
 
+    def drop_duplicates(self, keep: Union[bool, str] = "first") -> 
"MultiIndex":
+        """

Review comment:
       `MultiIndex.drop_duplicates` was supported before 3.4, here we separate 
the code path in order to better support the `keep` parameter. 
   
   Shall we add `versionadded:: 3.4.0` to the parameter?




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