Suppose I have two arrays (after importing numpy as np),
a=np.array([['a',1],['b',2]],dtype=object)
and
b=np.array([['b',3],['c',4]],dtype=object)
How do I get:
c=np.array([['a',1,None],['b',2,3],['c',None,4]],dtype=object)
Basically, joining using the first column as a key.
thanks
source share