I can use withcolumnto add new columns to a Dataframe. But in scala how can I add new rows to a DataFrame?
withcolumn
I\'m trying to add a dataframe to the bottom of
If they have the same schema, simply use union for spark 2+:
val dfUnion = df1.union(df2)
Or unionAll for spark 1+:
unionAll
val dfUnion = df1.unionAll(df2)