pyspark.RDD.context#
- property RDD.context#
The
SparkContextthat this RDD was created on.New in version 0.7.0.
- Returns
SparkContextThe
SparkContextthat this RDD was created on
Examples
>>> rdd = sc.range(5) >>> rdd.context <SparkContext ...> >>> rdd.context is sc True