You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by jo...@apache.org on 2014/09/12 18:46:29 UTC
git commit: [PySpark] Add blank line so that Python RDD.top()
docstring renders correctly
Repository: spark
Updated Branches:
refs/heads/master f116f76bf -> 533377621
[PySpark] Add blank line so that Python RDD.top() docstring renders correctly
Author: RJ Nowling <rn...@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
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/53337762
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/53337762
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/53337762
Branch: refs/heads/master
Commit: 533377621f1e178e18fa0b79d653a11b66e4e250
Parents: f116f76
Author: RJ Nowling <rn...@gmail.com>
Authored: Fri Sep 12 09:46:21 2014 -0700
Committer: Josh Rosen <jo...@apache.org>
Committed: Fri Sep 12 09:46:21 2014 -0700
----------------------------------------------------------------------
python/pyspark/rdd.py | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/53337762/python/pyspark/rdd.py
----------------------------------------------------------------------
diff --git a/python/pyspark/rdd.py b/python/pyspark/rdd.py
index 5667154..6ad5ab2 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)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org