How to perform union on two DataFrames with different amounts of columns in spark? August 17, 2022 by Magenaut I have 2 DataFrames: