datatable.stype¶
This class is deprecated and will be removed in version 1.2.0.
Please use dt.Type
instead.
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
dt.int64
Methods¶
Find stype corresponding to value |
|
Cast a column into the specific stype. |
|
ctypes type corresponding to this stype. |
|
numpy dtype corresponding to this stype. |
|
|
|
|
|
The smallest numeric value for this stype. |
|
The largest numeric value for this stype. |