Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import numpy as np
a1=np.array([[1,2],[3,4]])
#Transpose of an array
print (a1.T)
#Output:
[[1 3]
[2 4]]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment