[Numpy-discussion] max value of an array of lists

John Salvatier jsalvati at u.washington.edu
Thu Aug 19 17:45:35 EDT 2010


It sounds like you should just have a higher dimensional array. A 2 or 3
dimensional array instead of an object array.

On Thu, Aug 19, 2010 at 2:44 PM, John Salvatier
<jsalvati at u.washington.edu>wrote:

> You have an object array of lists? Why?
>
> On Thu, Aug 19, 2010 at 2:41 PM, sm lkd <thusweare at hotmail.com> wrote:
>
>>  Hello again,
>>
>> Here's a simple one. I have an array/matrix of lists (floats). array.max()
>> or max(array) returns list (!) and not an individual value. Of course, it is
>> possible to loop, but maybe someone knows a better way to do the same.
>>
>> Thanks,
>>
>>
>> _______________________________________________
>> NumPy-Discussion mailing list
>> NumPy-Discussion at scipy.org
>> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100819/fcb77297/attachment.html>


More information about the NumPy-Discussion mailing list