I am trying to use numpy.append but something goes wrong and it just doesn\'t make sence to me anymore. Can someone explain why I am getting an error?
>>&g
I know this is a rather unusual use case but in fact it can be very handy to have an ndarray holding lists in each cell. Imho numpy should allow to pass a lambda function to the fill
mehtod. But to achive what you want this is what I do:
m = np.empty((12, 12), dtype=object)
for i in np.ndindex(m.shape): m[i] = []