Given two numpy array a1 and a2:
>>>np.shape(a1)
(4465, 5000)
>>>np.shape(a2)
(4465, )
However,
>>>np.concatenate((a1, a2), axis=1)
ValueError: all the input arrays must have the same number of dimensions
And I also tried:
np.concatenate((a1, a2), axis=1),
np.concatenate((a1, a2.T), axis=0),
np.concatenate((a1, a2.T), axis=1)
But also got the same error.
Could you please tell me what's wrong with my code? Thanks!