SyntaxFix
Write A Post
Hire A Developer
Questions
You can use .shape
In: a = np.array([[1,2,3],[4,5,6]]) In: a.shape Out: (2, 3) In: a.shape[0] # x axis Out: 2 In: a.shape[1] # y axis Out: 3