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
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
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 cooke.stepha...@gmail.com a écrit :
Hello,
I am new to numpy. When I try to use the command array.shape, I get
the following