On Friday 19 September 2008 20:47:12 paul taney wrote:
> Hi,
>
> What am I doing wrong here?  The reshape doesn"t take.

help(reshape)
a.reshape(shape, order='C')

    Returns an array containing the data of a, but with a new shape.

    Refer to `numpy.reshape` for full documentation.

You see that you're not modifying in place.

Instead, you should use 
a.shape = (3,4,3)

Play with the tuple to find what you want -- (4,3,3) seems to meet your 
expectations.


_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@scipy.org
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to