我正在使用pyspark(Python 2.7.9/Spark 1.3.1)并且有一个数据框GroupObject,我需要按降序排列&排序。试图通过这段代码实现它。Spark DataFrame组按照降序排列(pyspark)
group_by_dataframe.count().filter("`count` >= 10").sort('count', ascending=False)
但它会引发以下错误。
sort() got an unexpected keyword argument 'ascending'