NumPy > Transpose array

Name
Code
Output
array = numpy.random.randint(5, size=(2, 3))
print ("array \n",array)
result1 = numpy.transpose(array)
print ("transpose method 1 \n",result1)
result2 = array.T
print ("transpose method 2 \n",result2)
array 
 [[1 4 1]
 [4 1 3]]
transpose method 1 
 [[1 4]
 [4 1]
 [1 3]]
transpose method 2 
 [[1 4]
 [4 1]
 [1 3]]