Getting Started
User Guide
API Reference
Development
Migration Guide
Spark SQL
Pandas API on Spark
Structured Streaming
MLlib (DataFrame-based)
Spark Streaming
MLlib (RDD-based)
Spark Core
Resource Management
pyspark.RDD.mean
¶
RDD.
mean
(
)
[source]
¶
Compute the mean of this RDD’s elements.
Examples
>>>
sc
.
parallelize
([
1
,
2
,
3
])
.
mean
()
2.0
pyspark.RDD.max
pyspark.RDD.meanApprox