Hi,
What am I doing wrong here? The reshape doesn"t take.
% cat test1.py
import numpy as np
a = np.uint8([39, 39, 231, 239, 39, 231, 39, 39, 231,
39, 39, 231, 239, 39, 231, 39, 39, 231,
39, 39, 231, 239, 39, 231, 39, 39, 231,
39, 39, 231, 239, 3
paul taney wrote:
> Hi,
>
> What am I doing wrong here? The reshape doesn"t take.
Reshape does not act in place, it returns either a new view or a copy.
To reshape in place, you can assign to the shape attribute:
In [13]:a = np.arange(10)
In [14]:a.shape = (2,5)
In [15]:a
Out[15]:
array([[0,
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 tha