cudf.DataFrame.to_pylibcudf#

DataFrame.to_pylibcudf() tuple[Table, dict][source]#

Convert this DataFrame to a pylibcudf.Table.

Returns:
pylibcudf.Table

A pylibcudf.Table referencing the same data.

dict

Dict of metadata (includes column names and dataframe indices)

Notes

This is always a zero-copy operation. The result is a view of the existing data. Changes to the pylibcudf data will be reflected back to the cudf object and vice versa.