Hi all, I’m learning Julia and I’m stuck trying to merge several dataframes into only one using a loop.
For instances, suppose that I have 4 dataframes called A, B, C and D. They have the same column names except for the last one, named x4. And I want to merge all of them into one. So far, I’m doing this:
df1=innerjoin(A, B, on = [:x1, :x2, :x3])
df2=innerjoin(df1, C, on = [:x1, :x2, :x3])
df3=innerjoin(df2, D, on = [:x1, :x2, :x3])
How can I do this in a nice loop?
Thanks a lot!