Skip to content

Commit 5230574

Browse files
committed
Add blank line so that Python RDD.top() docstring renders correctly
1 parent b8634df commit 5230574

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)