Answers for "how we can transpose the list in python"

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 "how we can transpose the list in python"

Python Answers by Framework

Browse Popular Code Answers by Language