We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5961a9 commit ab35ab5Copy full SHA for ab35ab5
python/pyspark/sql/dataframe.py
@@ -1275,7 +1275,7 @@ def __init__(self, jc):
1275
1276
# container operators
1277
__contains__ = _bin_op("contains")
1278
- __getitem__ = _bin_op("getItem")
+ __getitem__ = getItem
1279
1280
# bitwise operators
1281
bitwiseOR = _bin_op("bitwiseOR")
@@ -1300,7 +1300,7 @@ def getItem(self, key):
1300
| 1| value|
1301
+----+------+
1302
"""
1303
- return self[key]
+ return Column(self._jc.getItem(key))
1304
1305
def getField(self, name):
1306
"""An expression that gets a field by name in a StructField.
0 commit comments