has_kind#

caput.util.typeutils.has_kind(dt: numpy.dtype, kind: str) bool[source]#

Test if a numpy datatype has any fields of a specified type.

Parameters:
dtdtype

Data type to convert.

kindstr

Numpy type code character. e.g. “S” for bytestring and “U” for unicode.

Returns:
dtype_has_kindbool

True if it contains the requested kind.