Answers for "how to transpose matrix in python"

0

transpose matrices numpy

import numpy as np

A = [1, 2, 3, 4]
np.array(A).T # .T is used to transpose matrix
Posted by: Guest on May-23-2020
0

transpose matrix python

arr = list(list(x) for x in zip(*arr))
Posted by: Guest on August-03-2020

Code answers related to "how to transpose matrix in python"

Python Answers by Framework

Browse Popular Code Answers by Language