0
点赞
收藏
分享

微信扫一扫

spark scala 求整列的平均值


​val sumValue = theDF.map(_(0).asInstanceOf[Double]).reduce(_+_)​​​​val avgValue = sumValue / theDF.count()​


举报

相关推荐

求平均值

求平均值笔记

1054 求平均值

C++求平均值

0 条评论