NumPy Data type: issctype() function
numpy.issctype() function
The issctype() function is used to determine whether the given object represents a scalar data-type or not.
Version: 1.15.0
Syntax:
numpy.issctype(rep)
Parameter:
Name | Description | Required / Optional |
---|---|---|
rep : any | If rep is an instance of a scalar dtype, True is returned. If not, False is returned. | Optional |
Return value:
out : bool - Boolean result of check whether rep is a scalar dtype.
Example: numpy.issctype() function
>>> import numpy as np
>>> np.issctype(np.int32)
True
>>> np.issctype(list)
False
>>> np.issctype(1.1)
False
Example: numpy.issctype() function
>>> import numpy as np
>>> np.issctype(np.dtype('str'))
True
Python - NumPy Code Editor:
Previous:
MachAr()
Next:
issubdtype()
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics