1list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
2
3numpy_array = np.array(list_of_lists)
4transpose = numpy_array.T
5
6transpose_list = transpose.tolist()
1# Use numpy. T to transpose a list of lists, from kite.com
2
3list_of_lists = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
4
5numpy_array = np.array(list_of_lists)
6transpose = numpy_array.T
7transpose `numpy_array`
8
9transpose_list = transpose.tolist()