pyspark.RDD.stdev

RDD.stdev() → float[source]

Compute the standard deviation of this RDD’s elements.

New in version 0.9.1.

Returns
float

the standard deviation of all elements

Examples

>>> sc.parallelize([1, 2, 3]).stdev()
0.816...