Data type routines

can_cast

Returns True if cast between data types can occur according to the casting rule.

result_type

result_type(*arrays_and_dtypes)

common_type

Return a scalar type which is common to the input arrays.

Creating data types

dtype

dtype(dtype, align=False, copy=False, [metadata])

Data type information

finfo

Returns machine limits for floating-point data types.

iinfo

Returns machine limits for integer data types.

Data type testing

isdtype

Returns a boolean indicating whether a provided dtype is of a specified data type kind.

issubdtype

Returns True if the first argument is a type code lower/equal in type hierarchy.

Miscellaneous