pyspark.sql.DataFrame.rdd¶
-
property
DataFrame.
rdd
¶ Returns the content as an
pyspark.RDD
ofRow
.New in version 1.3.0.
- Returns
RDD
Examples
>>> df = spark.range(1) >>> type(df.rdd) <class 'pyspark.rdd.RDD'>
DataFrame.
rdd
¶Returns the content as an pyspark.RDD
of Row
.
New in version 1.3.0.
RDD
Examples
>>> df = spark.range(1)
>>> type(df.rdd)
<class 'pyspark.rdd.RDD'>