hipdf.DataFrame.from_pylibcudf

hipdf.DataFrame.from_pylibcudf#

21 min read time

Applies to Linux

classmethod DataFrame.from_pylibcudf(table: Table, metadata: dict) Self#

Create a DataFrame from a pylibcudf.Table.

Parameters#

tablepylibcudf.Table

The input Table.

metadatadict

Metadata necessary to reconstruct the dataframe

Returns#

tablecudf.DataFrame

A cudf.DataFrame referencing the columns in the pylibcudf.Table.

metadatalist[str]

Dict of metadata (includes column names and dataframe indices)

Notes#

This function will generate a DataFrame which contains a tuple of columns pointing to the same columns the input table points to. It will directly access the data and mask buffers of the pylibcudf columns, so the newly created object is not tied to the lifetime of the original pylibcudf.Table.