Numpy Data type: issubdtype() function
numpy.issubdtype() function
The issubdtype() function returns True if first argument is a typecode lower/equal in type hierarchy.
Version: 1.15.0
Syntax:
numpy.issubdtype(arg1, arg2)
Parameter:
Name | Description | Required / Optional |
---|---|---|
arg1, arg2 : dtype_like | dtype or string representing a typecode. |
Return value:
out : bool
Example: numpy.issubdtype() function
>>> import numpy as np
>>> np.issubdtype('S1', np.string_)
True
>>> np.issubdtype(np.float64, np.float32)
False
Python - NumPy Code Editor:
Previous:
issctype()
Next:
issubsctype()
- 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