cudf.StructDtype.to_arrow#
- StructDtype.to_arrow()#
Convert a
StructDtype
to apyarrow.StructType
.Examples
>>> import cudf >>> struct_type = cudf.StructDtype({"x": "int32", "y": "string"}) >>> struct_type StructDtype({'x': dtype('int32'), 'y': dtype('O')}) >>> struct_type.to_arrow() StructType(struct<x: int32, y: string>)