diff options
author | RJ Nowling <rnowling@gmail.com> | 2014-09-12 09:46:21 -0700 |
---|---|---|
committer | Josh Rosen <joshrosen@apache.org> | 2014-09-12 09:46:21 -0700 |
commit | 533377621f1e178e18fa0b79d653a11b66e4e250 (patch) | |
tree | 30d511dd3724277f472f848584b9e274740b9089 /python | |
parent | f116f76bf1f1610905ca094c8edc53151a78d2f4 (diff) | |
download | spark-533377621f1e178e18fa0b79d653a11b66e4e250.tar.gz spark-533377621f1e178e18fa0b79d653a11b66e4e250.tar.bz2 spark-533377621f1e178e18fa0b79d653a11b66e4e250.zip |
[PySpark] Add blank line so that Python RDD.top() docstring renders correctly
Author: RJ Nowling <rnowling@gmail.com>
Closes #2370 from rnowling/python_rdd_docstrings and squashes the following commits:
5230574 [RJ Nowling] Add blank line so that Python RDD.top() docstring renders correctly
Diffstat (limited to 'python')
-rw-r--r-- | python/pyspark/rdd.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/python/pyspark/rdd.py b/python/pyspark/rdd.py index 5667154cb8..6ad5ab2a2d 100644 --- a/python/pyspark/rdd.py +++ b/python/pyspark/rdd.py @@ -1060,6 +1060,7 @@ class RDD(object): Get the top N elements from a RDD. Note: It returns the list sorted in descending order. + >>> sc.parallelize([10, 4, 2, 12, 3]).top(1) [12] >>> sc.parallelize([2, 3, 4, 5, 6], 2).top(2) |