[Numpy-discussion] iteration over arrays
chrisf at fagmed.uit.no
Mon Apr 28 03:31:03 CDT 2003
I am trying to use Jnumeric(jython numeric)for mixed arrays of int,
NONE, string, and user defined objects, mostly because of the easy to
use syntax and notation.
Is there an easy way to generate a mask array from object type ?
vector = array(['a',2,'b',None,None,None,'hello'])
mask = equal(vector, isString)
vector = array([1,2,3,None,None,None,7])
mask = equal(vector, None).astype(Int8)
Why don't we have a boolean-(0,1)-1bit type ?
More information about the Numpy-discussion