Python | numpy.issubsctype() function Last Updated : 14 Mar, 2019 Comments Improve Suggest changes Like Article Like Report numpy.issubsctype() function is used to determine whether the first argumentis a subclass of the second argument.If the first argument is a subclass of the second argument it returns true, otherwise it returns false. Syntax : numpy.issubsctype(arg1, arg2) Parameters : arg1, arg2 : dtype or dtype specifier. Return : [bool] Boolean result. Code #1 : Python3 # Python program explaining # numpy.issubsctype() function # importing numpy import numpy as geek # selecting the argument arg1 = geek.array([1.0, 2.5, 3.9]) arg2 = geek.int # output boolean value out_val = geek.issubsctype(arg1, arg2) print ("Is the first argument subclass of the second argument: ", out_val) Output : Is the first argument subclass of the second argument: False Code #2 : Python3 # Python program explaining # numpy.issubsctype() function # importing numpy import numpy as geek # selecting the argument arg1 = geek.array([1.0, 2.5, 3.9]) arg2 = geek.float # output boolean value out_val = geek.issubsctype(arg1, arg2) print ("Is the first argument subclass of the second argument: ", out_val) Output : Is the first argument subclass of the second argument: True Comment More infoAdvertise with us Next Article Python | numpy.issubsctype() function jana_sayantan Follow Improve Article Tags : Python Python-numpy Python numpy-DataType Practice Tags : python Similar Reads 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_lik 1 min read Python | numpy.issctype() function numpy.issctype() function is used to determine whether the given object represents a scalar data-type.If the given object represents a scalar data-type it returns true, otherwise it returns false. Syntax : numpy.issctype(rep) Parameters : rep : any input. Return : [bool] Boolean result of check whet 1 min read 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, Tr 1 min read numpy.mintypecode() function â Python numpy.mintypecode() function return the character for the minimum-size type to which given types can be safely cast. Syntax : numpy.mintypecode(typechars, typeset = 'GDFgdf', default = 'd') Parameters : typechars : [list of str or array_like] If a list of strings, each string should represent a dtyp 1 min read numpy.ma.is_mask() function | Python numpy.ma.is_mask() function return True if parameter m is a valid, standard mask. This function does not check the contents of the input, only that the type is MaskType. In particular, this function returns False if the mask has a flexible dtype. Syntax : numpy.ma.is_mask(m) Parameter : m : [array_l 1 min read numpy.iinfo() function â Python numpy.iinfo() function shows machine limits for integer types. Syntax : numpy.iinfo(dtype) Parameters : dtype : [integer type, dtype, or instance] The kind of integer data type to get information about. Return : Machine limits for integer types. Code #1 : Python3 # Python program explaining # numpy. 1 min read numpy.obj2sctype() function â Python numpy.obj2sctype() function return the scalar dtype or NumPy equivalent of Python type of an object. Syntax : numpy.obj2sctype(rep, default = None) Parameters : rep : [any] The object of which the type is returned. default : [any, optional] If given, this is returned for objects whose types can not 1 min read numpy.who function - Python numpy.who() function print the NumPy arrays in the given dictionary. Syntax : numpy.who(vardict = None) Parameters : vardict : [dict, optional] A dictionary possibly containing ndarrays. Return : Returns âNoneâ. If there is no dictionary passed in or vardict is None then returns NumPy arrays in the 1 min read numpy.matlib.zeros() function | Python numpy.matlib.zeros() function return matrix of given shape and type, filled with zeros. Syntax : numpy.matlib.zeros(shape, dtype = None, order = 'C') Parameters : shape : [sequence of ints] Shape of the empty matrix. dtype : [data-type, optional] The desired data-type for the matrix, default is floa 1 min read Like