I have a dataframe that I want to make a unionAll
with another dataframe. The problem is that the second dataframe has three more columns than the first one. Is there a way for me to add three columns with only empty cells in my first dataframe?
df.withColumn('NewColumn', lit(None).cast(StringType()))