Julia pandas - how to append dataframes together

by SilopS   Last Updated September 20, 2018 18:26 PM

Working with Julia 1.0 I have a large numbers of data frames which I read into Julia using pandas (read_csv) and I am looking for a way to append them all together into a single big data frame. For some reason the "append" function does not do the trick. A simplified example below:

using Pandas 

df = Pandas.DataFrame([[1, 2], [3, 4]], columns=['A', 'B'])

df2 = Pandas.DataFrame([[5, 6], [7, 8]], columns=['A', 'B'])

df[:append](df2)  #fails

df.append(df2)    #fails

df[:concat](df2)  #fails


The last step works but produces a 2 element Array with each element being a DataFrame

Any ideas on how to stack the two dataframes one under the other?

Related Questions

Concatenate DataFrames.DataFrame in Julia

Updated March 07, 2017 05:26 AM

Search and replace in DataFrames

Updated January 30, 2018 11:26 AM