If I create an array X = np.random.rand(D, 1)
it has shape (3,1)
:
[[ 0.31215124]
[ 0.84270715]
[ 0.41846041]]
If I create my own array A = np.array([0,1,2])
then it has shape (1,3)
and looks like
[0 1 2]
How can I force the shape (3, 1)
on my array A
?
A.reshape([3,1])
?