bundles / numpy 2.4.4 / numpy / issctype
function
numpy:issctype
source: /numpy/_core/numerictypes.py:191
Signature
def issctype(rep)Summary
Determines whether the given object represents a scalar data-type.
Parameters
rep: anyIf
repis an instance of a scalar dtype, True is returned. If not, False is returned.
Returns
out: boolBoolean result of check whether
repis a scalar dtype.
Examples
from numpy._core.numerictypes import issctype issctype(np.int32) issctype(list) issctype(1.1)✓
FalseStrings are also a scalar type:
issctype(np.dtype('str'))
✓True
See also
Aliases
numpy._core.numerictypes.issctype