Skip to content

Commit

Permalink
[SPARK-7294] ADD BETWEEN
Browse files Browse the repository at this point in the history
  • Loading branch information
云峤 committed May 2, 2015
1 parent baf839b commit 7d62368
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions python/pyspark/sql/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -1297,8 +1297,7 @@ def between(self, lowerBound, upperBound):
>>> df[df.col1.between(lowerBound, upperBound)].collect()
[Row(col1=5, col2=6, col3=8)]
"""
jc = (self >= lowerBound) & (self <= upperBound)
return Column(jc)
return (self >= lowerBound) & (self <= upperBound)

def __repr__(self):
return 'Column<%s>' % self._jc.toString().encode('utf8')
Expand Down

0 comments on commit 7d62368

Please sign in to comment.