I have a condition where I have to add 100 columns (to an existing DF)
The existing DF is like this
c1 c2 c3 c4
The 100 columns should be added after c2 so the output looks likes this
c1 c2 c5 c6 c7 c8 c9 ...... c100 c3 c4
I used the .withColumn to add the columns and arrange them in order using .select
Is there a better way to do this?
TIA