I have one 1xn array like this:
data = [-2 -1 -3 -5 2 5 8 9 ..... 8]
Now, I want concatenate this with other similar 1xn arrays:
data2 = [0 3 0 0 ..... 5]
final is a big matrix with many rows
[data]
[data2]
...
[data1000]
What is the Python code for this?
dataas displayed looks like a (n,) 1d shaped array (no commas, so it's not a list). You want to make a (m,n) array, withmm rows?np.arrayon a list of the 1d arrays:np.array([data, data2, data3, ... ,data1000])