Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2016 07:25 PM
the drop() only removes the specific data frame instance of the column. So if you have:
val new_ddf = ddf.join(up_ddf, "name")
then in new_ddf you have two columns ddf.name and up_ddf.name.
val new_ddf = ddf.join(up_ddf, "name").drop(up_ddf.col("name") will remove that column and only leave ddf.name in new_ddf.