0

I’ve tried using fillna() as well as join() and update(). But I cannot figure out how to concatenate the elements of two specific columns together. The closest I have got to the above example, has been using update(), but that replaces the value. Thanks in advance.

Example:

df1 =
A | B | C
-----------
‘a’|‘b’|‘c’
‘d’|‘e’|‘f’

df2 =
D | E | F
-----------
‘ax’|‘bx’|‘cx’
‘dx’|‘ex’|‘fx’

ds3 = df1[‘A’] + df2[‘D’]
The output I would like:

new |
-----
‘aax’
‘ddx’

0 Answers0