Answers for "create a numpy array from list python"

0

list of array to array numpy

np.concatenate( list_of_array, axis=0 )
Posted by: Guest on September-06-2021
0

list of list to numpy array

>>> lists = [[1, 2], [3, 4]]
>>> np.array(lists)
array([[1, 2],
       [3, 4]])
Posted by: Guest on March-02-2021

Code answers related to "create a numpy array from list python"

Python Answers by Framework

Browse Popular Code Answers by Language