pyspark.RDD.sampleStdev#

RDD.sampleStdev()[source]#

Compute the sample standard deviation of this RDD’s elements (which corrects for bias in estimating the standard deviation by dividing by N-1 instead of N).

New in version 0.9.1.

Returns
float

the sample standard deviation of all elements

Examples

>>> sc.parallelize([1, 2, 3]).sampleStdev()
1.0