python - when to reshape numpy array like (3,) -
a=np.arange(3) a.shape #(3,) a.reshape(3,1) somethings multiply, plus failed a. what's shape (3,) used for?
shape (n,) indicates 1 dimensional array. if reshape(3, 1) 2 dimensional array 1 column , 3 rows.
not sure question exactly, can elaborate?
Comments
Post a Comment