My goal is for nd_array[0] = 1,2,3,4,5 I have sat on this problem for hours now. I have attempted to create the whole 2D list as a list and then using np.asarray(just creates the strangiest array i havbe ever seen, not even sure how to explain it) , I've tried np.append this is just a cut out from a different problem. In the actual example, I am looping and creating a list with 5 values, then adding those values to nparray[0] then the loop after adding to nparray[1]
nd_array = np.zeros(shape=(5, 5))
pyth_list = [1, 2, 3, 4, 5]
np.insert(nd_array, pyth_list, 0)
print(123)
nd_array[0] = pyth_listnp.insert(nd_array, pyth_list, 0)this obviously doesn't do anything sincenp.insertdoesn't mutate inplace, but instead returns a new array. I also don't know what thisprint(123)has to do with anything?