Skip to content

Commit

Permalink
fix python test
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-fan committed May 8, 2015
1 parent b5961a9 commit ab35ab5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1275,7 +1275,7 @@ def __init__(self, jc):

# container operators
__contains__ = _bin_op("contains")
__getitem__ = _bin_op("getItem")
__getitem__ = getItem

# bitwise operators
bitwiseOR = _bin_op("bitwiseOR")
Expand All @@ -1300,7 +1300,7 @@ def getItem(self, key):
| 1| value|
+----+------+
"""
return self[key]
return Column(self._jc.getItem(key))

def getField(self, name):
"""An expression that gets a field by name in a StructField.
Expand Down

0 comments on commit ab35ab5

Please sign in to comment.