Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

transpose array python

import numpy as np

x = np.arange(4).reshape((2,2))
x
array([[0, 1],
       [2, 3]])

np.transpose(x)
array([[0, 2],
       [1, 3]])
 
PREVIOUS NEXT
Tagged: #transpose #array #python
ADD COMMENT
Topic
Name
8+2 =