Extension Dtypes#
cuDF supports a number of extension dtypes that build on top of the types that pandas supports. These dtypes are not directly available in pandas, which instead relies on object dtype arrays that run at Python rather than native speeds. The following dtypes are supported:
cudf.CategoricalDtype#
|
Type for categorical data with the categories and orderedness. |
Properties and Methods#
An |
|
Construct this type from a string. |
|
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
|
Convert a |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
A string identifying the data type. |
|
Whether the categories have an ordered relationship. |
|
Generate an equivalent serializable representation of an object. |
|
Convert a |
|
The scalar type for the array, e.g. |
cudf.Decimal32Dtype#
|
Type to represent a |
Properties and Methods#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
Construct a cudf decimal dtype from a |
|
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
Length of one column element in bytes. |
|
The decimal precision, in number of decimal digits (an integer). |
|
The decimal scale (an integer). |
|
Generate an equivalent serializable representation of an object. |
|
Return the equivalent |
cudf.Decimal64Dtype#
|
Type to represent a |
Properties and Methods#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
Construct a cudf decimal dtype from a |
|
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
Length of one column element in bytes. |
|
The decimal precision, in number of decimal digits (an integer). |
|
The decimal scale (an integer). |
|
Generate an equivalent serializable representation of an object. |
|
Return the equivalent |
cudf.Decimal128Dtype#
|
Type to represent a |
Properties and Methods#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
Construct a cudf decimal dtype from a |
|
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
Length of one column element in bytes. |
|
The decimal precision, in number of decimal digits (an integer). |
|
The decimal scale (an integer). |
|
Generate an equivalent serializable representation of an object. |
|
Return the equivalent |
cudf.ListDtype#
|
Type to represent list data. |
Properties and Methods#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
Returns the element type of the |
|
|
Creates a |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
Returns the type of the leaf values. |
|
Generate an equivalent serializable representation of an object. |
|
Convert to a |
|
The scalar type for the array, e.g. |
cudf.StructDtype#
|
Type to represent a struct data. |
Properties and Methods#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
Returns an ordered dict of column name and dtype key-value. |
|
Convert a |
|
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
|
Check if we match 'dtype'. |
Generate an equivalent serializable representation of an object. |
|
Convert a |
|
The scalar type for the array, e.g. |