pyspark.sql.DataFrame.rdd

property DataFrame.rdd

Returns the content as an pyspark.RDD of Row.

New in version 1.3.0.

Returns
RDD

Examples

>>> df = spark.range(1)
>>> type(df.rdd)
<class 'pyspark.rdd.RDD'>