I have a ListBuffer of 30 DataFrames with the same fields and I want to 'append' them all at once. What is the best way and most efficient?
var result_df_list = new ListBuffer[DataFrame]()
I have seen that you can create a Sequence of DF like this:
val newDFs = Seq(DF1,DF2,DF3)
newDFs.reduce(_ union _)
But how can you achieve this with a ListBuffer?