HyukjinKwon commented on code in PR #37233:
URL: https://github.com/apache/spark/pull/37233#discussion_r925355544
##########
python/pyspark/sql/dataframe.py:
##########
@@ -1422,6 +1422,52 @@ def colRegex(self, colName: str) -> Column:
jc = self._jdf.colRegex(colName)
return Column(jc)
+ def convert(self, schema: StructType) -> "DataFrame":
Review Comment:
Maybe let's use other names ... for example .. `DataFrame.asType` or
`DataFrame.asSchema`
--
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]