How to convert DataFrame to RDD in Scala?

Simply:

val rows: RDD[Row] = df.rdd

Leave a Comment