numpy.maximum_sctype() function – Python Last Updated : 18 Jun, 2020 Comments Improve Suggest changes Like Article Like Report numpy.maximum_sctype() function return the scalar type of highest precision of the same kind as the input. Syntax : numpy.maximum_sctype(t) Parameters : t : [dtype or dtype specifier] The input data type. This can be a dtype object or an object that is convertible to a dtype. Return : [dtype] The highest precision data type of the same kind as the input. Code #1 : Python3 # Python program explaining # numpy.maximum_sctype() function # importing numpy as geek import numpy as geek gfg = geek.maximum_sctype(int) print (gfg) Output : class 'numpy.int64' Code #2 : Python3 # Python program explaining # numpy.maximum_sctype() function # importing numpy as geek import numpy as geek gfg = geek.maximum_sctype('f4') print (gfg) Output : class 'numpy.float128' Comment More infoAdvertise with us Next Article numpy.maximum_sctype() function – Python sanjoy_62 Follow Improve Article Tags : Python Python-numpy Practice Tags : python Similar Reads numpy.sctype2char() function â Python numpy.sctype2char() function return the string representation of a scalar dtype. Syntax : numpy.sctype2char(sctype) Parameters : sctype : [scalar dtype or object] If a sctype is a scalar dtype, the corresponding string character is returned. If an object, sctype2char tries to infer its scalar type a 1 min read Numpy recarray.max() function | Python In numpy, arrays may have a data-types containing fields, analogous to columns in a spreadsheet. An example is [(a, int), (b, float)], where each entry in the array is a pair of (int, float). Normally, these attributes are accessed using dictionary lookups such as arr['a'] and arr['b']. Record array 4 min read numpy.typename() function â Python numpy.typename() function return a description for the given data type code. Syntax : numpy.typename(char) Parameters : char : [str] Data type code. Return : [str] Description of the input data type code. Code #1 : Python3 # Python program explaining # numpy.typename() function # importing numpy as 2 min read numpy.maximum() in Python numpy.maximum() function is used to find the element-wise maximum of array elements. It compares two arrays and returns a new array containing the element-wise maxima. If one of the elements being compared is a NaN, then that element is returned. If both elements are NaNs then the first is returned. 2 min read numpy.result_type() function â Python numpy.result_type() function returns the type that results from applying the NumPy type promotion rules to the arguments. NumPy type promotion by example : Suppose calculating 3*arr, where arr is an array of 32-bit floats, intuitively should result in a 32-bit float output. If the 3 is a 32-bit inte 1 min read type() function in Python The type() function is mostly used for debugging purposes. Two different types of arguments can be passed to type() function, single and three arguments. If a single argument type(obj) is passed, it returns the type of the given object. If three argument types (object, bases, dict) are passed, it re 5 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 numpy.common_type() function â Python numpy.common_type() function return a scalar type which is common to the input arrays. Syntax : numpy.common_type(arrays) Parameters : array1, array2, .... : [ndarrays] Input arrays. Return : [dtype] Return the data type which is common to the input arrays. Code #1 : Python3 # Python program explain 1 min read numpy.dtype.subdtype() function â Python numpy.dtype.subdtype() function returns Tuple(item_dtype, shape) if this dtype describes a sub-array, and None otherwise. Syntax : numpy.dtype.subdtype(type) type : [dtype] The input data-type. Return : Return Tuple(item_dtype, shape) if this dtype describes a sub-array, and None otherwise. Code #1 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 Like