DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
6+3 =
Submit