datatable.Type.is_categorical

is_categorical
Added in version 1.1.0

Test whether this type is a categorical one. This property returns True for cat8(T), cat16(T) and cat32(T) types only.

Parameters

return
bool

Examples

dt.Type.cat8(int).is_categorical
True
dt.Type.cat32(dt.Type.str64).is_categorical
True
dt.Type.void.is_categorical
False