I want to do the following using numpy:
- create an an array of arrays using numpy where each row contains only one element such as
[[0],[0],[0],[0],[0],[0],[0],[0],[0],[0]]
xx = np.array([np.array([0])] * 10)
- append an element to a specific row such as
[[0],[0,5],[0],[0],[0],[0],[0],[0],[0],[0]]
xx[1] = np.append(xx[1],5)
- retrieve an element from a specific row such as
print(x[1,1])
this means that I need a two dimensional array with different row size and the elements are appended dynamically