I am using Python/NumPy, and I have two arrays like the following:
array1 = [1 2 3] array2 = [4 5 6]
And I would like to create a new array
a=np.array([[1,2,3],[4,5,6]])
a.tolist()
tolist method mentioned above will return the nested Python list