I want to change the values of entries of my MxN matrix but I have which column I want for each row on a vector. I tried:
scores[:column_indices] = 0

but that sets everything to zero instead of for all row change column indicated by column_indices to zero. I guess in python loops it would be:
for k,i in enumerate(column_indices):
    scores[k,i] = 0

does someone know how to vectorize that code? I feel it should be easy but I’m having issues doing it.