Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy ndarray.T Example

# welcome to softhunt.net
# import the important module in python
import numpy as np
		
# make an array with numpy
arr = np.array([[1, 4, 7, 10], [2, 5, 8, 11], [3, 6, 9, 12]])
		
# applying ndarray.T object
softhunt = arr.T

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