dchvn commented on a change in pull request #34737: URL: https://github.com/apache/spark/pull/34737#discussion_r758223279
########## File path: python/pyspark/pandas/series.py ########## @@ -5179,7 +5179,9 @@ def asof(self, where: Union[Any, List]) -> Union[Scalar, "Series"]: Notes ----- - Indices are assumed to be sorted. Raises if this is not the case. Review comment: when values of the series is not sorted ```python >>> pser = pd.Series([2, 1, np.nan, 4], index=[10, 20, 30, 40]) >>> psser = ps.from_pandas(pser) >>> pser.asof(20) 1.0 >>> psser.asof(20) 2.0 >>> ``` -- 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-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org