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 error:
>
> AttributeError: 'list' object has no attribute 'shape'
>
> Is anyone familiar with this type of error?
>
> Thanks
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to