Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Resolved
-
8.0.0
Description
It's not at all obvious how to get a particular field from a StructType from it's API page:
https://arrow.apache.org/docs/python/generated/pyarrow.StructType.html#pyarrow.StructType
We should add an example:
struct_type = pa.struct({"x": pa.int32(), "y": pa.string()}) struct_type[0] # pyarrow.Field<x: int32> pa.schema(list(struct_type)) # x: int32 # y: string
Attachments
Issue Links
- links to