Answers for "python combine two lists into matrix"

0

python combine two lists into matrix

np.c_[[1,2,3], [4,5,6]]
Posted by: Guest on December-12-2020
0

python combine two lists into matrix

np.column_stack(([1, 2, 3], [4, 5, 6]))
array([[1, 4],
       [2, 5],
       [3, 6]])
Posted by: Guest on December-12-2020

Code answers related to "python combine two lists into matrix"

Python Answers by Framework

Browse Popular Code Answers by Language