摘要: You can use either top or takeOrdered with key argument: newRDD.top(2, key=lambda x: x[2]) or newRDD.takeOrdered(2, key=lambda x: -x[2]) Note that top 阅读全文
posted @ 2021-03-12 11:06 bonelee 阅读(336) 评论(0) 推荐(0) 编辑