Rename DataFrame Column

val df = rdd.toDF().withColumnRenamed("from_col", "to_col")

 

apache spark rdd

About Neil Rubens

see http://ActiveIntelligence.org
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


*