itholic commented on pull request #35191: URL: https://github.com/apache/spark/pull/35191#issuecomment-1014187924
Thanks! Let me leave some comments after taking deeper look tomorrow. Btw, you can make the code example more prettier with `python` keyword as below, just FYI :-) <img width="473" alt="Screen Shot 2022-01-17 at 3 39 29 PM" src="https://user-images.githubusercontent.com/44108233/149719970-b64ee598-cf7f-48f5-b208-7e0cff6f7c5f.png"> this results to: ```python 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 2.0 Name: Koalas, dtype: float64 pser = pd.Series([4, np.nan, np.nan, 2], index=[10, 20, 30, 40], name="Koalas") psser = ps.from_pandas(pser) psser.asof([5, 100]) 5 NaN 100 4.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: [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]
