HyukjinKwon commented on code in PR #37978:
URL: https://github.com/apache/spark/pull/37978#discussion_r978352232


##########
python/pyspark/pandas/series.py:
##########
@@ -6610,6 +6610,78 @@ def compare(
         )
         return DataFrame(internal)
 
+    # todo: 1, support array-like 'value'; 2, add parameter 'sorter'
+    def searchsorted(self, value: Any, side: str = "left") -> int:
+        """
+        Find indices where elements should be inserted to maintain order.
+
+        Find the indices into a sorted Series self such that, if the 
corresponding elements
+        in value were inserted before the indices, the order of self would be 
preserved.
+
+        Parameters
+        ----------
+        value : scalar
+            Values to insert into self.
+        side : {‘left’, ‘right’}, optional
+            If ‘left’, the index of the first suitable location found is given.
+            If ‘right’, return the last such index. If there is no suitable 
index,
+            return either 0 or N (where N is the length of self).
+

Review Comment:
   maybe `versionadded`



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