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

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -