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()
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework