Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy append list to 2d array

a = np.array([[1,2,3]])

l = [4,5,6]

np.vstack([a,l])
Out: array([[1, 2, 3],
       		[4, 5, 6]])
 
PREVIOUS NEXT
Tagged: #numpy #append #list #array
ADD COMMENT
Topic
Name
4+2 =