Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy array from list

>>> a = [1, 2]
>>> np.asarray(a)
array([1, 2])
Source by numpy.org #
 
PREVIOUS NEXT
Tagged: #numpy #array #list
ADD COMMENT
Topic
Name
5+6 =