How do I append (row-bind) a collection of DataFrames together into one?

I have a collection of DataFrames all with the same columns, what’s the most efficient way to append them together (row-bind)?


a = [DataFrame(a = 1:3, b = 4:6) for i = 1:3]

How do I efficient append the dataframes in a together? Imagine if I have hundreds of these.

Just use reduce(vcat, a)

Learned from https://github.com/bkamins/Julia-DataFrames-Tutorial/blob/master/06_rows.ipynb

1 Like