SyntaxFix
Write A Post
Hire A Developer
Questions
Is there an equivalent to isscalar() in numpy? Yes.
>>> np.isscalar(3.1) True >>> np.isscalar([3.1]) False >>> np.isscalar(False) True >>> np.isscalar('abcd') True