Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy swapaxis Function Example 2

# 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)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #swapaxis #Function #Example
ADD COMMENT
Topic
Name
1+4 =