pyspark.sql.DataFrame.rdd#
- property DataFrame.rdd#
Returns the content as an
pyspark.RDDofRow.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.
RDDExamples
>>> df = spark.range(1)
>>> type(df.rdd)
<class 'pyspark.core.rdd.RDD'>