types#

class pylibcudf.types.DataType#

Indicator for the logical data type of an element in a column.

This is the Cython representation of cudf::data_type.

Parameters:
idtype_id

The type’s identifier

scaleint

The scale associated with the data. Only used for decimal data types.

Methods

id(self)

Get the id associated with this data type.

scale(self)

Get the scale associated with this data type.

id(self) type_id#

Get the id associated with this data type.

scale(self) int32_t#

Get the scale associated with this data type.

pylibcudf.types.size_of(DataType t) size_type#

Returns the size in bytes of elements of the specified data_type.

Only fixed-width types are supported.

For details, see size_of().