cast list to numpy array code example Example: np list to np import numpy as np a = np.array( [[2,3,4], [3,4,5]] )