Skip to content
Advertisement

put two columns from two different datasets together into one column

I have two dataframes

df1

name
Elias
David
Simon
Manuel

and a second df2

name
Gabriel
Brian
Simona
Danielle
Dilara
Martin
David
Simon

I one to put them into one column

I expecting an output like these:

name
Elias
David
Simon
Manuel
Gabriel
Brian
Simona
Danielle
Dilara
Martin

where every name occur once, so remove also duplicates.

i tried these

JavaScript

but these gave me something different

Advertisement

Answer

Assuming the columns names are ‘A’ and ‘B’:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement