list1 = [1,2,3,4,5]
import numpy as np array1 = np.array(list1) array1
array([1, 2, 3, 4, 5])
list2 = array1.tolist() list2
[1, 2, 3, 4, 5]