val sumValue = theDF.map(_(0).asInstanceOf[Double]).reduce(_+_)
val avgValue = sumValue / theDF.count()
spark scala 求整列的平均值
阅读 113
2022-07-27
val sumValue = theDF.map(_(0).asInstanceOf[Double]).reduce(_+_)
val avgValue = sumValue / theDF.count()
相关推荐
精彩评论(0)