RDD.
sampleVariance
Compute the sample variance of this RDD’s elements (which corrects for bias in estimating the variance by dividing by N-1 instead of N).
Examples
>>> sc.parallelize([1, 2, 3]).sampleVariance() 1.0
previous
pyspark.RDD.sampleStdev
next
pyspark.RDD.saveAsHadoopDataset