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/07/21 17:12:55 UTC

[GitHub] [spark] xinrong-meng commented on a diff in pull request #37235: [SPARK-39824][PYTHON][PS] Introduce index where and putmask func in pyspark

xinrong-meng commented on code in PR #37235:
URL: https://github.com/apache/spark/pull/37235#discussion_r926923051


##########
python/pyspark/pandas/indexes/base.py:
##########
@@ -2666,6 +2666,93 @@ def inferred_type(self) -> str:
         """
         return lib.infer_dtype([self.to_series().head(1).item()])
 
+    def putmask(
+            self,
+            mask: "Index",
+            value: Any
+    ) -> "Index":
+        """
+        Return a new Index of the values set with the mask.
+    

Review Comment:
   Also
   ```
       Parameters
       ----------
   ```
   please



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