pyspark.RDD.variance# RDD.variance()[source]# Compute the variance of this RDD’s elements. New in version 0.9.1. Returns floatthe variance of all elements See also RDD.stats() RDD.sampleVariance() RDD.stdev() RDD.sampleStdev() Examples >>> sc.parallelize([1, 2, 3]).variance() 0.666...