Contact: aviboots(AT)netvision.net.il
39,872 questions
51,796 answers
573 users
import numpy as np lst1 = [1, 2, 3] lst2 = [4, 5, 6] lst3 = [7, 8, 9] arr = np.hstack((np.reshape(lst1, (len(lst1), 1)), np.reshape(lst2, (len(lst2), 1)), np.reshape(lst3, (len(lst3), 1)))) print(arr) ''' run: [[1 4 7] [2 5 8] [3 6 9]] '''