Python | numpy.issubdtype() function

numpy.issubdtype() function is used to determine whether the first argument is a typecode lower/equal in type hierarchy from second argument.If the first argument is lower or equal it returns true, otherwise it returns false.
Syntax : numpy.issubdtype(arg1, arg2)
Parameters :
arg1, arg2 : [dtype_like] dtype or string representing a typecode.Return : [bool] Boolean result.
Code #1 :
| # Python program explaining # numpy.issubdtype() function  # importing numpy importnumpy as geek  # selecting the argument  arg1 =geek.int64 arg2 =geek.int32  # output boolean value out_val =geek.issubdtype(arg1, arg2) print("Is the first argument lower: ", out_val)   | 
Output : 
Is the first argument lower: False
Code #2 :
| # Python program explaining # numpy.issubdtype() function  # importing numpy importnumpy as geek  # selecting the argument  arg1 ='S2'arg2 =geek.string_  # output boolean value out_val =geek.issubdtype(arg1, arg2) print("Is the first argument lower: ", out_val)   | 
Output : 
Is the first argument lower: True
 
				 
					


