beliefer commented on code in PR #38973:
URL: https://github.com/apache/spark/pull/38973#discussion_r1042866959
##########
python/pyspark/sql/connect/dataframe.py:
##########
@@ -824,6 +824,39 @@ def withColumn(self, colName: str, col: Column) ->
"DataFrame":
session=self._session,
)
+ def melt(
+ self,
+ ids: List["ColumnOrName"],
+ values: List["ColumnOrName"],
+ variableColumnName: str,
+ valueColumnName: str,
+ ) -> "DataFrame":
Review Comment:
This method is corresponding to the one of `Dataset` show below.
```
def melt(
ids: Array[Column],
values: Array[Column],
variableColumnName: String,
valueColumnName: String): DataFrame =
unpivot(ids, values, variableColumnName, valueColumnName)
```
Should we add another method is corresponding to the another one of
`Dataset` show below.
```
def melt(
ids: Array[Column],
variableColumnName: String,
valueColumnName: String): DataFrame =
unpivot(ids, variableColumnName, valueColumnName)
```
--
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]