Python Beginner here.
After going through numpy documentation which says vstack is equivalent to concatenation along the first axis after 1-D arrays of shape (N,) have been reshaped to (1,N).
So the below code
a = np.array([[1], [2], [3]])
b = np.array([[2], [3], [4]])
np.vstack((a,b))
should be
np.concatenate((a,b),axis=0))
After reshaping all 1-D arrays from (1,) to (1,1)
a will be
[[[1]]
[[2]]
[[3]]]
b will be
[[[2]]
[[3]]
[[4]]]
So,
np.concatenate((a,b),axis=0)
should be
[[[1]]
[[2]]
[[3]]
[[2]]
[[3]]
[[4]]]
but the result shows
[[1]
[2]
[3]
[2]
[3]
[4]]
Is there any misinterpretation from my side? Please figure out where I am going wrong here?