convert list of list in numpy matrix code example
Example 1: convert list to numpy array
import numpy as np
npa = np.asarray(Lists, dtype=np.float32)
Example 2: list of list to numpy array
>>> lists = [[1, 2], [3, 4]]
>>> np.array(lists)
array([[1, 2],
[3, 4]])