Travis Oliphant wrote:
> Tom Denniston wrote:
>
>> The following works on a float array but not an object array. It
>> gives a very strange error message.
>>
>> (Pdb) numpy.log(numpy.array([19155613843.7], dtype=object))
>> *** AttributeError: 'float' object has no attribute 'log'
>>
>>
Tom Denniston wrote:
> The following works on a float array but not an object array. It
> gives a very strange error message.
>
> (Pdb) numpy.log(numpy.array([19155613843.7], dtype=object))
> *** AttributeError: 'float' object has no attribute 'log'
>
This is expected behavior. For object arra
The following works on a float array but not an object array. It
gives a very strange error message.
(Pdb) numpy.log(numpy.array([19155613843.7], dtype=object))
*** AttributeError: 'float' object has no attribute 'log'
(Pdb) numpy.log([19155613843.7])
array([ 23.67586166])
-