HyukjinKwon commented on code in PR #36127: URL: https://github.com/apache/spark/pull/36127#discussion_r846918678
########## python/pyspark/pandas/generic.py: ########## @@ -3181,6 +3181,83 @@ def ffill( pad = ffill + # TODO: add 'axis', 'inplace', 'limit_direction', 'limit_area', 'downcast' + def interpolate( + self: FrameLike, + method: Optional[str] = None, + limit: Optional[int] = None, + ) -> FrameLike: + """ + Fill NaN values using an interpolation method. + + Parameters + ---------- + method : str, default 'linear' + Interpolation technique to use. One of: + + * 'linear': Ignore the index and treat the values as equally + spaced. + + limit : int, optional + Maximum number of consecutive NaNs to fill. Must be greater than + 0. + Review Comment: Maybe we should start adding `versionadded: 3.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: 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