Exemple de fonction Swapaxis Python Numpy

# welcome to softhunt.net
# Python program explaining
# numpy.swapaxes() function

# importing numpy as np
import numpy as np

arr = np.array([[1, 2, 3, 4]])

softhunt = np.swapaxes(arr, 0, 1)

print (softhunt)
Outrageous Ostrich