holoviews.core.data.cudf module#

class holoviews.core.data.cudf.cuDFInterface(*, name)[source]#

Bases: PandasInterface

The cuDFInterface allows a Dataset objects to wrap a cuDF DataFrame object. Using cuDF allows working with columnar data on a GPU. Most operations leave the data in GPU memory, however to plot the data it has to be loaded into memory.

The cuDFInterface covers almost the complete API exposed by the PandasInterface with two notable exceptions:

  1. Aggregation and groupby do not have a consistent sort order (see rapidsai/cudf#4237)

  1. Not all functions can be easily applied to a cuDF so some functions applied with aggregate and reduce will not work.

Parameter Definitions


classmethod applies(obj)[source]#

Indicates whether the interface is designed specifically to handle the supplied object’s type. By default simply checks if the object is one of the types declared on the class, however if the type is expensive to import at load time the method may be overridden.

classmethod loaded()[source]#

Indicates whether the required dependencies are loaded.

classmethod select_mask(dataset, selection)[source]#

Given a Dataset object and a dictionary with dimension keys and selection keys (i.e. tuple ranges, slices, sets, lists, or literals) return a boolean mask over the rows in the Dataset object that have been selected.