arkouda.dtypes#

Module Contents#

Functions#

check_np_dtype(→ None)

Assert that numpy dtype dt is one of the dtypes supported

dtype(x)

get_byteorder(→ str)

Get a concrete byteorder (turns '=' into '<' or '>')

get_server_byteorder(→ str)

Get the server's byteorder

isSupportedNumber(num)

resolve_scalar_dtype(→ str)

Try to infer what dtype arkouda_server should treat val as.

translate_np_dtype(→ Tuple[str, int])

Split numpy dtype dt into its kind and byte size, raising

Attributes#

arkouda.dtypes.ARKOUDA_SUPPORTED_DTYPES#
arkouda.dtypes.DTypeObjects#
arkouda.dtypes.DTypes#
arkouda.dtypes.ScalarDTypes#
arkouda.dtypes.all_scalars#

The DType enum defines the supported Arkouda data types in string form.

arkouda.dtypes.bigint#
arkouda.dtypes.bitType#
arkouda.dtypes.bool#
arkouda.dtypes.bool_scalars#
arkouda.dtypes.check_np_dtype(dt: numpy.dtype | BigInt) None[source]#

Assert that numpy dtype dt is one of the dtypes supported by arkouda, otherwise raise TypeError.

Raises:

TypeError – Raised if the dtype is not in supported dtypes or if dt is not a np.dtype

arkouda.dtypes.complex128#
arkouda.dtypes.complex64#
arkouda.dtypes.dtype(x)[source]#
arkouda.dtypes.float32#
arkouda.dtypes.float64#
arkouda.dtypes.float_scalars#
arkouda.dtypes.get_byteorder(dt: numpy.dtype) str[source]#

Get a concrete byteorder (turns ‘=’ into ‘<’ or ‘>’)

arkouda.dtypes.get_server_byteorder() str[source]#

Get the server’s byteorder

arkouda.dtypes.int16#
arkouda.dtypes.int32#
arkouda.dtypes.int64#
arkouda.dtypes.int8#
arkouda.dtypes.intTypes#
arkouda.dtypes.int_scalars#
arkouda.dtypes.isSupportedNumber(num)[source]#
arkouda.dtypes.numeric_scalars#
arkouda.dtypes.numpy_scalars#
arkouda.dtypes.resolve_scalar_dtype(val: object) str[source]#

Try to infer what dtype arkouda_server should treat val as.

arkouda.dtypes.str_#
arkouda.dtypes.str_scalars#
arkouda.dtypes.translate_np_dtype(dt) Tuple[str, int][source]#

Split numpy dtype dt into its kind and byte size, raising TypeError for unsupported dtypes.

Raises:

TypeError – Raised if the dtype is not in supported dtypes or if dt is not a np.dtype

arkouda.dtypes.uint16#
arkouda.dtypes.uint32#
arkouda.dtypes.uint64#
arkouda.dtypes.uint8#