Skip to content

Commit

Permalink
[PySpark] Add blank line so that Python RDD.top() docstring renders c…
Browse files Browse the repository at this point in the history
…orrectly

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
  • Loading branch information
rnowling authored and JoshRosen committed Sep 12, 2014
1 parent f116f76 commit 5333776
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ def top(self, num, key=None):
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)
Expand Down

0 comments on commit 5333776

Please sign in to comment.