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.core.rdd.RDD'>
Site Navigation
Section Navigation
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.core.rdd.RDD'>