How to merge two dataset objects?

Hi everyone!

I have two datasets, loaded as CSV files, which have the same features/columns. I would like to know if there is a way to merge both datasets into a larger one (like I would do with pd.concat((df_1, df_2))using pandas.

In case that such method does not exist, would it be interesting to implement such functionality?

Thanks in advance :hugs:

1 Like

I would rather combine the csv’s :grin:

1 Like

Are you using :hugs:nlp ?

If so, you could try nlp.concatenate_datasets :slight_smile:

2 Likes

Thank you. That is exactly what I was looking for, but I couldn’t find it in the documentation (now that I now the method I can find it in the API when I autocomplete the code, but it doesn’t appear anywhere in the documentation).

Quick update since I see that this thread still has views:
concatenate_datasets is available through the datasets library here, since the library was renamed.