How Can I Combine(Concatenate) Two Data Frames with the Same Column Name in Java
Can I Append a Dataframe to the Right of Other Dataframe Having Same Column Names 3 1 Answer You Can Join Two Dataframes Like This. Df1. Join(Df2, Df1...
Can I append a dataframe to the right of other dataframe having same column names
1 Answer
You can join two dataframes like this.
df1.join(df2, df1.col("column").equalTo(df2("column")));
If you are looking for Union, then you can do something like this.
df1.unionAll(df2); // spark 1.6
Spark 2.0, unionAll was renamed to union