I want the 3d array to be empty in the beginning and then append an array to index 0 and then append an array to that array.
paths = np.array([], ndmin=3)
print(paths)
print(paths.ndim)
paths = np.append(paths, [])
print(paths)
paths[0] = np.append(paths[0], [3,4,5])
print(paths)
output
[]
3
[]
paths[0] = np.append(paths[0], [3,4,5])
IndexError: index 0 is out of bounds for axis 0 with size 0