[ Web Proxy ]
URL:
Viewing: https://spark.apache.org/docs/latest/api/python/reference/api/../api/pyspark.RDD.sampleStdev.html [Back]  [Original]

pyspark.RDD.sampleStdev — PySpark 4.2.0 documentation Skip to main content
Search the docs ...:

pyspark.RDD.sampleStdev#

RDD.sampleStdev()[source]#

Compute the sample standard deviation of this RDDs 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

Web Proxy Viewer  |  New URL  |  Original Page