Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy rollaxis Function Example 02

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

# importing numpy as np
import numpy as np


arr = np.ones((4, 3, 2, 1))

softhunt = np.rollaxis(arr, 2).shape

print (softhunt)
Source by softhunt.net #
 
PREVIOUS NEXT
Tagged: #Python #NumPy #rollaxis #Function #Example
ADD COMMENT
Topic
Name
6+7 =