RDD.
count
Return the number of elements in this RDD.
New in version 0.7.0.
the number of elements
See also
RDD.countApprox()
pyspark.sql.DataFrame.count()
Examples
>>> sc.parallelize([2, 3, 4]).count() 3
previous
pyspark.RDD.context
next
pyspark.RDD.countApprox