xinrong-meng commented on code in PR #37521:
URL: https://github.com/apache/spark/pull/37521#discussion_r947080266
##########
python/pyspark/sql/column.py:
##########
@@ -462,6 +499,18 @@ def withField(self, fieldName: str, col: "Column") ->
"Column":
.. versionadded:: 3.1.0
+ Parameters
+ ----------
+ fieldName : str
+ a literal value.
+ The result will only be true at a location if any field matches in
the Column.
+
+ Returns
+ -------
+ :class:`Column`
+ Column representing whether each element of Column
+ which field added/replaced by fileName.
Review Comment:
nit: `fieldName`
--
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]