val sumValue = theDF.map(_(0).asInstanceOf[Double]).reduce(_+_)
val avgValue = sumValue / theDF.count()
微信扫一扫
val sumValue = theDF.map(_(0).asInstanceOf[Double]).reduce(_+_)
val avgValue = sumValue / theDF.count()
相关推荐