0
点赞
收藏
分享

微信扫一扫

spark scala 求整列的最大值 的另一种实现

他说Python 2022-07-27 阅读 176


val maxValue = inputDF.rdd.reduce((row1, row2) => {
val value = math.max(row1.getAs[Double](0), row2.getAs[Double](0))
Row(value)
}).getAs[Double](0)


举报

相关推荐

0 条评论