Skip to content

Commit

Permalink
Minor change in comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrapCodes committed Mar 26, 2014
1 parent 58e58c6 commit f316266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyspark/rdd.py
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ def top(self, num):
"""
Get the top N elements from a RDD.
Note: It returns the list sorted in ascending order.
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]).cache().top(2)
Expand Down

0 comments on commit f316266

Please sign in to comment.