DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+6 =
Submit