datatable.ltype¶
Enumeration of possible “logical” types of a column.
Logical type is the type stripped away from the details of its physical
storage. For example, ltype.int
represents an integer. Under the hood,
this integer can be stored in several “physical” formats: from
stype.int8
to stype.int64
. Thus, there is a one-to-many relationship
between ltypes and stypes.
Values¶
The following ltype values are currently available:
ltype.bool
ltype.int
ltype.real
ltype.str
ltype.time
ltype.obj
Examples¶
dt.ltype.bool
ltype.bool
dt.ltype("int32")
ltype.int
For each ltype, you can find the set of stypes that correspond to it:
dt.ltype.real.stypes
[stype.float32, stype.float64]
dt.ltype.time.stypes
[]