Skip to content

Commit 7d62368

Browse files
author
云峤
committed
[SPARK-7294] ADD BETWEEN
1 parent baf839b commit 7d62368

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

python/pyspark/sql/dataframe.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1297,8 +1297,7 @@ def between(self, lowerBound, upperBound):
12971297
>>> df[df.col1.between(lowerBound, upperBound)].collect()
12981298
[Row(col1=5, col2=6, col3=8)]
12991299
"""
1300-
jc = (self >= lowerBound) & (self <= upperBound)
1301-
return Column(jc)
1300+
return (self >= lowerBound) & (self <= upperBound)
13021301

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

0 commit comments

Comments
 (0)