Vajra Vajra - 1 month ago 6
Scala Question

How to convert DataFrame to RDD in Scala?

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

Answer

Simply:

val rows: RDD[Row] = df.rdd