pralabhkumar opened a new pull request #35191: URL: https://github.com/apache/spark/pull/35191
### What changes were proposed in this pull request? Fix Series.asof when values of the series is not sorted ``` import pandas as pd from pyspark import pandas as ps import numpy as np pser = pd.Series([2, 1, np.nan, 4], index=[10, 20, 30, 40], name="Koalas") psser = ps.from_pandas(pser) psser.asof([5, 25]) 5 NaN 25 1.0 Name: Koalas, dtype: float64 pser.asof([5, 25]) 5 NaN 25 1.0 Name: Koalas, dtype: float64 ``` ### Why are the changes needed? There is a bug in ps.as_of, when the series is not sorted ### Does this PR introduce any user-facing change? Yes user will be able to see the behavior exactly matching to pandas ### How was this patch tested? unit tests -- 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]
