Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python NumPy ndarray.T Example to convert an array

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

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