cudf.DataFrame.from_pylibcudf#
- classmethod DataFrame.from_pylibcudf(table: Table | TableWithMetadata, metadata: dict[str, Any] | None = None) Self[source]#
Create a DataFrame from a pylibcudf.Table.
- Parameters:
- tablepylibcudf.Table, pylibcudf.io.TableWithMetadata
The input Table.
- metadatadict, default None
Metadata necessary to reconstruct the dataframe if table is a pylibcudf.Table.
- Returns:
- tablecudf.DataFrame
A cudf.DataFrame referencing the columns in the pylibcudf.Table.
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.