You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
.all() and .any() fail for arrays of type 'S' and 'U' (Trac #1314) #1912
In [3]: x = np.array(['abc', 'def', ''], 'S')
In [4]: x.all()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
/wonkabar/data1/builds/betadrizzle/<ipython console> in <module>()
TypeError: cannot perform reduce with flexible type
This is a sensible operation. I wonder if there's a way to make it work.
Activity
thouis commentedon Oct 19, 2012
@mwiebe wrote on 2011-03-25
I think this should follow the behavior of Python with regard to strings:
thouis commentedon Oct 19, 2012
Milestone changed to
Unscheduledby @mwiebe on 2011-03-25ENH: Allow strings in logical ufuncs