Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python transpose list of lists

import numpy as np
a = [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
np.array(a).T.tolist()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #transpose #list #lists
ADD COMMENT
Topic
Name
9+5 =