I have a list 'Z' with:
import numpy as np
z[0] = np.random.normal( 0, 1, ( 500, 20 ) )
z[1] = np.random.normal( 0, 1, ( 500, 30 ) )
There are about 100 arrays in the list. I am using only size 2 list for illustration. The stored arrays are all of dimension 0 of 500
I want to achieve:
C = np.concatenate( ( z[0] , z[1] ),1)
I tried:
z1 = [ np.concatenate( z[ii], 1 ) for ii in range(0,len(z)) ]
but it still returns the original list and doesn't concatenate the stored arrays