File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1275,7 +1275,7 @@ def __init__(self, jc):
1275
1275
1276
1276
# container operators
1277
1277
__contains__ = _bin_op ("contains" )
1278
- __getitem__ = getItem
1278
+ __getitem__ = _bin_op ( " getItem" )
1279
1279
1280
1280
# bitwise operators
1281
1281
bitwiseOR = _bin_op ("bitwiseOR" )
@@ -1300,7 +1300,7 @@ def getItem(self, key):
1300
1300
| 1| value|
1301
1301
+----+------+
1302
1302
"""
1303
- return Column ( self . _jc . getItem ( key ))
1303
+ return self [ key ]
1304
1304
1305
1305
def getField (self , name ):
1306
1306
"""An expression that gets a field by name in a StructField.
@@ -1320,7 +1320,7 @@ def getField(self, name):
1320
1320
| 1|
1321
1321
+---+
1322
1322
"""
1323
- return Column ( self . _jc . getField ( name ))
1323
+ return self [ name ]
1324
1324
1325
1325
def __getattr__ (self , item ):
1326
1326
if item .startswith ("__" ):
You can’t perform that action at this time.
0 commit comments