Vaex: How to add/append rows to a Vaem DataFrame

3.7k Views Asked by At

How do you add data to a Vaex DataFrame?

I can see there is add_column(), but no add/append_row()

I'm looking to use Vaex instead of Pandas.

2

There are 2 best solutions below

5
On

I believe these is a concat method for this.

df = df_1.concat(df_2)

It's mentioned in the API Documentation as well.

0
On

This does not answer your question, but wanted to correct concat A To concatenate two dataframes, the API is similar to pandas.

to assign it to the same dataframe variable

df1 = vaex.concat([df1, df_new])

or

to assign it to a new dataframe variable

df3 = vaex.concat([df1, df2])