python combine two lists into matrix

Solutions on MaxInterview for python combine two lists into matrix by the best coders in the world

showing results for - "python combine two lists into matrix"
Jannik
13 May 2016
1np.c_[[1,2,3], [4,5,6]]
Kelyan
31 Nov 2020
1np.column_stack(([1, 2, 3], [4, 5, 6]))
2array([[1, 4],
3       [2, 5],
4       [3, 6]])