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