Re: [Numpy-discussion] AttributeError with shape command

2012-03-26 Thread Olivier Delalleau
It means "array" is a regular Python list and not a numpy array. Use numpy.array(array) to convert it into an array. -=- Olivier Le 26 mars 2012 20:07, Stephanie Cooke a écrit : > Hello, > > I am new to numpy. When I try to use the command array.shape, I get > the following error: > > Attribute

Re: [Numpy-discussion] AttributeError with shape command

2012-03-26 Thread Derek Homeier
On 27.03.2012, at 2:07AM, Stephanie Cooke wrote: > I am new to numpy. When I try to use the command array.shape, I get > the following error: > > AttributeError: 'list' object has no attribute 'shape' > > Is anyone familiar with this type of error? It means 'array' actually is not one, more pre

[Numpy-discussion] AttributeError with shape command

2012-03-26 Thread Stephanie Cooke
Hello, I am new to numpy. When I try to use the command array.shape, I get the following error: AttributeError: 'list' object has no attribute 'shape' Is anyone familiar with this type of error? Thanks ___ NumPy-Discussion mailing list NumPy-Discussio