SyntaxFix
Write A Post
Hire A Developer
Questions
Alternatively, you can use np.shape(...)
np.shape(...)
For instance:
import numpy as np
a=[1,2,3]
and np.shape(a) will give an output of (3,)
np.shape(a)
(3,)