I want to create an array with dtype=np.object, where each element is an array with a numerical type, e.g int or float. For example:
dtype=np.object
>>>
It's not exactly pretty, but...
import numpy as np a = np.array([1,2,3]) b = np.array([None, a, a, a])[1:] print b.dtype, b[0].dtype, b[1].dtype # object int32 int32