pyspark.RDD.cache

RDD.cache() → pyspark.rdd.RDD[T]

Persist this RDD with the default storage level (MEMORY_ONLY).