diff options
author | Reynold Xin <rxin@databricks.com> | 2015-06-03 14:19:10 -0700 |
---|---|---|
committer | Reynold Xin <rxin@databricks.com> | 2015-06-03 14:20:27 -0700 |
commit | 2c5a06cafd2885ff5431fa96485db2564ae1cce3 (patch) | |
tree | b334f05556532111f15cf3175e29d539a24c8668 /python/pyspark/sql/context.py | |
parent | 939e4f3d8def16dfe03f0196be8e1c218a9daa32 (diff) | |
download | spark-2c5a06cafd2885ff5431fa96485db2564ae1cce3.tar.gz spark-2c5a06cafd2885ff5431fa96485db2564ae1cce3.tar.bz2 spark-2c5a06cafd2885ff5431fa96485db2564ae1cce3.zip |
Update documentation for [SPARK-7980] [SQL] Support SQLContext.range(end)
Diffstat (limited to 'python/pyspark/sql/context.py')
-rw-r--r-- | python/pyspark/sql/context.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/pyspark/sql/context.py b/python/pyspark/sql/context.py index 1bebfc4837..599c9ac579 100644 --- a/python/pyspark/sql/context.py +++ b/python/pyspark/sql/context.py @@ -146,6 +146,8 @@ class SQLContext(object): >>> sqlContext.range(1, 7, 2).collect() [Row(id=1), Row(id=3), Row(id=5)] + If only one argument is specified, it will be used as the end value. + >>> sqlContext.range(3).collect() [Row(id=0), Row(id=1), Row(id=2)] """ |