xinrong-meng commented on code in PR #37521:
URL: https://github.com/apache/spark/pull/37521#discussion_r947079687
##########
python/pyspark/sql/column.py:
##########
@@ -405,6 +415,20 @@ def getItem(self, key: Any) -> "Column":
.. versionadded:: 1.3.0
+ Parameters
+ ----------
+ key
+ a literal value, or a :class:`Column` expression.
+ The result will only be true at a location if item matches in the
column.
+
+ .. deprecated:: 3.0.0
+ :class:`Column` as a parameter is deprecated.
+
+ Returns
+ -------
+ :class:`Column`
+ Column representing whether each element of Column as items
contained in key.
Review Comment:
nit: how about `Column representing the item(s) got at position out of a
list or by key out of a dict`?
--
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]