SyntaxFix
Write A Post
Hire A Developer
Questions
This is called the "shape" in NumPy, and can be requested via the .shape attribute:
.shape
>>> a = zeros((2, 5)) >>> a.shape (2, 5)
If you prefer a function, you could also use numpy.shape(a).
numpy.shape(a)