Answers for "python transpose a list of lists"

1

python transpose list of lists

import numpy as np
a = [[1, 4, 7], [2, 5, 8], [3, 6, 9]]
np.array(a).T.tolist()
Posted by: Guest on January-08-2022

Code answers related to "python transpose a list of lists"

Python Answers by Framework

Browse Popular Code Answers by Language