I want to add a certain number, in this case 1, to a specific location in the array specified below
array = np.zeros((1, 5))
If I run the code above, I get an array that looks like this
[0,0,0,0,0]
How do I add the integer 1 in a specific location in this array? I know if you use
np.add(array,1)
you get something like
[1,1,1,1,1]
What should I do I want to add 1 only in a specific location in the numpy array so it'll look more like
[1,0,0,0,0] or [0,0,1,0,0]