I want to set a column in numpy array to zero at different times, in other words, I have numpy array
You're doing this:
But you should be doing this:
The first one is wrong because
M[:] just gives you the entire array, like
 gives you the first row.
M[:] gives you the first row as well, because again
[:] has no effect.