# welcome to softhunt.net
# Python program explaining
# numpy.swapaxes() function
# importing numpy as np
import numpy as np
arr = np.array([[[0, 1], [4, 5]], [[2, 3], [6, 7]]])
softhunt = np.swapaxes(arr, 0, 2)
print (softhunt)
numpy.swapaxes(arr, axis1, axis2)
# 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)