Python Numpy Transsose Fonction Exemple dans une ligne de code

# welcome to softhunt.net
# importing python module named numpy
import numpy as np

# making a 3x3 array
arr = np.array([[1, 4, 7],
				[2, 5, 8],
				[3, 6, 9]])

# before transpose
print('Original array:\n', arr, end ='\n\n')

# after transpose
print('Transposed array:\n', arr.transpose())
Outrageous Ostrich