I have many arrays, let's say
X = np.array([1, 2, 3, 4])
Y = np.array([5, 6, 7, 8])
Z = np.array([9, 10, 11, 12])
I want to concatenate them all so I have
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
Here is what I've tried
arr = X + Y + Z
this doesn't work, here is my result
>>> print(arr)
[15, 18, 21, 24]
Just the sum of each element at an index i. Any suggestions?
list, it masks the built-in typeX + Y + Zshould give you what you want.