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