SO I have two arrays
a=np.array([1,2,3])
b=np.array(['a','b','c'])
That I need to combine such that I get
array([1,'a'],[2,'b'],[3,'c'])
I thought a simple
np.stack((a,b),axis=1)
would do it, but it turns everything into a string. How do I avoid that?
array([['1', 'a'],
['2', 'b'],
['3', 'c']],
dtype='<U21')
numpyarray have to be of same type.