Skip to content

Commit 5333776

Browse files
rnowlingJoshRosen
authored andcommitted
[PySpark] Add blank line so that Python RDD.top() docstring renders correctly
Author: RJ Nowling <[email protected]> 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
1 parent f116f76 commit 5333776

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pyspark/rdd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1060,6 +1060,7 @@ def top(self, num, key=None):
10601060
Get the top N elements from a RDD.
10611061
10621062
Note: It returns the list sorted in descending order.
1063+
10631064
>>> sc.parallelize([10, 4, 2, 12, 3]).top(1)
10641065
[12]
10651066
>>> sc.parallelize([2, 3, 4, 5, 6], 2).top(2)

0 commit comments

Comments
 (0)