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