convert a NumPy array to a python list code example Example: ndarray to list a = np.array([1, 2]) a.tolist()