Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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]])
 
PREVIOUS NEXT
Tagged: #change #values #column #numpy #array
ADD COMMENT
Topic
Name
6+3 =