I\'m trying to create a numpy array that looks like
array([[list([]), list([])], [list([]), list([])], [list([]), list([])]], dtype=object)
You could use the following:
np.frompyfunc(list, 0, 1)(np.empty((3,2), dtype=object))
We first turn list into a ufunc that takes no arguments and returns a single empty list, then apply it to an empty 3x2 array of object type.
list
ufunc