SyntaxFix
Write A Post
Hire A Developer
Questions
The shape method requires that a be a Numpy ndarray. But Numpy can also calculate the shape of iterables of pure python objects:
shape
a
np.shape([[1,2],[1,2]])