Answers for "Python NumPy ndarray.T Example to convert an array"

0

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)
Posted by: Guest on April-21-2022

Code answers related to "Python NumPy ndarray.T Example to convert an array"

Python Answers by Framework

Browse Popular Code Answers by Language