Friday, September 5, 2025
HomeLanguagesnumpy.issubclass_() function – Python

numpy.issubclass_() function – Python

numpy.issubclass_() function is used to determine whether a class is a subclass of a second class.

Syntax : numpy.issubclass_(arg1, arg2)

Parameters :
arg1 : [class] Input class. True is returned if arg1 is a subclass of arg2.
arg2 : [class or tuple of classes] Input class. If a tuple of classes, True is returned if arg1 is a subclass of any of the tuple elements.
Return : [bool] Boolean result. Whether arg1 is a subclass of arg2 or not.

Code #1 :




# Python program explaining
# numpy.issubclass_() function
            
# importing numpy as geek 
import numpy as geek 
        
gfg = geek.issubclass_(geek.int32, float)
      
print (gfg)


Output :

False

 
Code #2 :




# Python program explaining
# numpy.issubclass_() function
            
# importing numpy as geek 
import numpy as geek 
        
gfg = geek.issubclass_(geek.float64, float)
      
print (gfg)


Output :

True
Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32264 POSTS0 COMMENTS
Milvus
81 POSTS0 COMMENTS
Nango Kala
6634 POSTS0 COMMENTS
Nicole Veronica
11801 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11863 POSTS0 COMMENTS
Shaida Kate Naidoo
6750 POSTS0 COMMENTS
Ted Musemwa
7025 POSTS0 COMMENTS
Thapelo Manthata
6701 POSTS0 COMMENTS
Umr Jansen
6718 POSTS0 COMMENTS