Vajra Vajra - 1 year ago 64
Scala Question

How to convert DataFrame to RDD in Scala?

Can someone please share how one can convert a dataframe to an RDD?

Answer Source

Simply:

val rows: RDD[Row] = df.rdd