Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pyspark rdd sort by value descending

from pyspark.sql.functions import desc

(group_by_dataframe
    .count()
    .filter("`count` >= 10")
    .sort(desc("count"))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pyspark #rdd #sort #descending
ADD COMMENT
Topic
Name
4+7 =