RDD.
getNumPartitions
Returns the number of partitions in RDD
New in version 1.1.0.
number of partitions
Examples
>>> rdd = sc.parallelize([1, 2, 3, 4], 2) >>> rdd.getNumPartitions() 2
previous
pyspark.RDD.getCheckpointFile
next
pyspark.RDD.getResourceProfile