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.
Attributes
DataType.typestr: str
Methods
from_arrow(pa_typ)Construct a DataType from a Python type.
from_py(type typ)Construct a DataType from a Python type.
id(self)Get the id associated with this data type.
scale(self)Get the scale associated with this data type.
- static from_arrow(pa_typ) DataType#
Construct a DataType from a Python type.
- Parameters:
- pa_typpyarrow type
A Pyarrow type (eg. pa)
- Returns:
- DataType
The corresponding pylibcudf DataType.
- Raises:
- ImportError
If pyarrow is not installed.
- TypeError
If the Python type is not supported.
- static from_py(type typ: type) DataType#
Construct a DataType from a Python type.
- Parameters:
- typtype
A Python type (eg. int, str, list)
- Returns:
- DataType
The corresponding pylibcudf DataType.
- Raises:
- TypeError
If the Python type is not supported.
- id(self) type_id#
Get the id associated with this data type.
- scale(self) int32_t#
Get the scale associated with this data type.
- typestr#
DataType.typestr: str
The array interface type string.
- pylibcudf.types.Interpolation#
See also
cudf::interpolation.Enum members
LINEARLOWERHIGHERMIDPOINTNEAREST
- pylibcudf.types.MaskState#
See also
cudf::mask_state.Enum members
UNALLOCATEDUNINITIALIZEDALL_VALIDALL_NULL
- pylibcudf.types.NanEquality#
See also
cudf::nan_equality.Enum members
ALL_EQUALUNEQUAL
- pylibcudf.types.NanPolicy#
See also
cudf::nan_policy.Enum members
NAN_IS_NULLNAN_IS_VALID
- pylibcudf.types.NullEquality#
See also
cudf::null_equality.Enum members
EQUALUNEQUAL
- pylibcudf.types.NullOrder#
See also
cudf::null_order.Enum members
AFTERBEFORE
- pylibcudf.types.NullPolicy#
See also
cudf::null_policy.Enum members
EXCLUDEINCLUDE
- pylibcudf.types.Order#
See also
cudf::order.Enum members
ASCENDINGDESCENDING
- pylibcudf.types.Sorted#
See also
cudf::sorted.Enum members
NOYES
- pylibcudf.types.TypeId#
See also
cudf::type_id.Enum members
EMPTYINT8INT16INT32INT64UINT8UINT16UINT32UINT64FLOAT32FLOAT64BOOL8TIMESTAMP_DAYSTIMESTAMP_SECONDSTIMESTAMP_MILLISECONDSTIMESTAMP_MICROSECONDSTIMESTAMP_NANOSECONDSDURATION_DAYSDURATION_SECONDSDURATION_MILLISECONDSDURATION_MICROSECONDSDURATION_NANOSECONDSDICTIONARY32STRINGLISTDECIMAL32DECIMAL64DECIMAL128STRUCTNUM_TYPE_IDS