replace a column in numpy array code example
Example 1: replacing columns in numpy
N[:,2] = M[:,2]
Example 2: how to change the values of a column in numpy array
>>> a = np.zeros((2,2), dtype=np.int)
>>> a[:, 0] = 1
>>> a
array([[1, 0],
[1, 0]])