lucas-nelson-uiuc commented on code in PR #48947:
URL: https://github.com/apache/spark/pull/48947#discussion_r1867891001
##########
python/pyspark/sql/classic/dataframe.py:
##########
@@ -1699,6 +1700,19 @@ def transform(
), "Func returned an instance of type [%s], " "should have been
DataFrame." % type(result)
return result
+ def pipe(
+ self, *funcs: tuple[Callable[..., ParentDataFrame]]
+ ) -> ParentDataFrame:
+ result = functools.reduce(
+ lambda init, func: init.transform(func),
Review Comment:
@HyukjinKwon any thoughts on my comment above?
--
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]