datatable.stype

class
stype

Enumeration of possible “storage” types of columns in a Frame.

Each column in a Frame is a vector of values of the same type. We call this column’s type the “stype”. Most stypes correspond to primitive C types, such as int32_t or double. However some stypes (corresponding to strings and categoricals) have a more complicated underlying structure.

Notably, datatable does not support arbitrary structures as elements of a Column, so the set of stypes is small.

Values

The following stype values are currently available:

  • stype.bool8

  • stype.int8

  • stype.int16

  • stype.int32

  • stype.int64

  • stype.float32

  • stype.float64

  • stype.str32

  • stype.str64

  • stype.obj64

They are available either as properties of the dt.stype class, or directly as constants in the dt. namespace. For example:

dt.stype.int32
stype.int32
dt.int64
stype.int64

Methods

stype(x)

Find stype corresponding to value x.

<stype>(col)

Cast a column into the specific stype.

.ctype

ctypes type corresponding to this stype.

.dtype

numpy dtype corresponding to this stype.

.ltype

dt.ltype corresponding to this stype.

.struct

struct string corresponding to this stype.

.min

The smallest numeric value for this stype.

.max

The largest numeric value for this stype.