HyukjinKwon commented on code in PR #38726:
URL: https://github.com/apache/spark/pull/38726#discussion_r1027251817
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -756,6 +757,62 @@ def schema(self) -> StructType:
else:
return self._schema
+ def transform(self, func: Callable[..., "DataFrame"], *args: Any,
**kwargs: Any) -> "DataFrame":
+ """Returns a new :class:`DataFrame`. Concise syntax for chaining
custom transformations.
+
+ .. versionadded:: 3.0.0
+
+ Parameters
+ ----------
+ func : function
+ a function that takes and returns a :class:`DataFrame`.
+ *args
+ Positional arguments to pass to func.
+
+ .. versionadded:: 3.3.0
Review Comment:
```suggestion
```
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -756,6 +757,62 @@ def schema(self) -> StructType:
else:
return self._schema
+ def transform(self, func: Callable[..., "DataFrame"], *args: Any,
**kwargs: Any) -> "DataFrame":
+ """Returns a new :class:`DataFrame`. Concise syntax for chaining
custom transformations.
+
+ .. versionadded:: 3.0.0
+
+ Parameters
+ ----------
+ func : function
+ a function that takes and returns a :class:`DataFrame`.
+ *args
+ Positional arguments to pass to func.
+
+ .. versionadded:: 3.3.0
+ **kwargs
+ Keyword arguments to pass to func.
+
+ .. versionadded:: 3.3.0
Review Comment:
```suggestion
```
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -756,6 +757,62 @@ def schema(self) -> StructType:
else:
return self._schema
+ def transform(self, func: Callable[..., "DataFrame"], *args: Any,
**kwargs: Any) -> "DataFrame":
+ """Returns a new :class:`DataFrame`. Concise syntax for chaining
custom transformations.
+
+ .. versionadded:: 3.0.0
Review Comment:
```suggestion
.. versionadded:: 3.3.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]