cudf.Index.from_pylibcudf#
- classmethod Index.from_pylibcudf(col: Column, metadata: dict | None = None) Self[source]#
Create a Index from a pylibcudf.Column.
- Parameters:
- colpylibcudf.Column
The input Column.
- Returns:
- pylibcudf.Column
A new pylibcudf.Column referencing the same data.
- metadatadict | None
The Index metadata.
Notes
This function will generate an Index which contains a Column pointing to the provided pylibcudf Column. It will directly access the data and mask buffers of the pylibcudf Column, so the newly created object is not tied to the lifetime of the original pylibcudf.Column.