interop#
- class cudf._lib.pylibcudf.interop.ColumnMetadata(name: str = '', children_meta: list[cudf._lib.pylibcudf.interop.ColumnMetadata] = <factory>)#
Metadata associated with a column.
This is the Python representation of
cudf::column_metadata
.
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object, *, DataType data_type=None)#
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object: DataType)
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object: Table, *, data_type=None)
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object: Scalar, *, data_type=None)
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object: ChunkedArray, *, data_type=None)
- cudf._lib.pylibcudf.interop.from_arrow(pyarrow_object: Array, *, data_type=None)
Create a cudf object from a pyarrow object.
- Parameters:
- pyarrow_objectUnion[pyarrow.Array, pyarrow.Table, pyarrow.Scalar]
The PyArrow object to convert.
- Returns:
- Union[Table, Scalar]
The converted object of type corresponding to the input type in cudf.
- cudf._lib.pylibcudf.interop.to_arrow(cudf_object, metadata=None)#
- cudf._lib.pylibcudf.interop.to_arrow(cudf_object: DataType, **kwargs)
- cudf._lib.pylibcudf.interop.to_arrow(cudf_object: Table, metadata=None)
- cudf._lib.pylibcudf.interop.to_arrow(cudf_object: Scalar, metadata=None)
- cudf._lib.pylibcudf.interop.to_arrow(cudf_object: Column, metadata=None)
Convert to a PyArrow object.
- Parameters:
- cudf_objectUnion[Column, Table, Scalar]
The cudf object to convert.
- metadatalist
The metadata to attach to the columns of the table.
- Returns:
- Union[pyarrow.Array, pyarrow.Table, pyarrow.Scalar]
The converted object of type corresponding to the input type in PyArrow.