<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1015" rel="nofollow">http://projects.scipy.org/numpy/ticket/1015</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError                            Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1013" rel="nofollow">http://projects.scipy.org/numpy/ticket/1013</a> on 2009-02-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wesm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wesm">@wesm</a>, assigned to unknown.</em></p>
<p dir="auto">This error is very unintuitive for end-users, arrays formed from SQL query results can frequently end up as object arrays by accident.</p>
<p dir="auto">In [15]: arr = np.random.randn(100).astype(object)</p>
<h2 dir="auto">In [16]: np.log(arr)</h2>
<p dir="auto">AttributeError                            Traceback (most recent call last)</p>
<p dir="auto">H:\workspace\Python\src in ()</p>
<p dir="auto">AttributeError: log</p>
<p dir="auto">Same AttributeError is raised for other ufuncs</p>