I have several bumpy arrays and I want to concatenate them. I am using np.concatenate((array1,array2),axis=1)
. My problem now is that I want to make the number
Do you need to use numpy? Even if you do, you can convert numpy array to python list, run the following and covert back to numpy.array.
Adding to lists in python will concatenate them...
x1=[1,0,1]
x2=[0,0,1]
x3=[1,1,1]
def conc_func(*args):
xt=args[0]
print(args)
for a in args[1:]:
xt+=a
print (xt)
return xt
xt=conc_func(x1,x2,x3)