I have a numpy array with dtype=object, and I want to create a boolean array identifying which elements are None. But it looks like None behaves di
None
You can use numpy.equal:
In [20]: np.equal(a, None) Out[20]: array([False, False, False, False, True, False, False, False, False, False, True, False], dtype=bool)