exportSchema

fnArrowSchema exportSchema(DataType dtype, string name = null) @trusted

Builds the ArrowSchema for one dtype: the verified format string, an optional name, null metadata, and the rich kinds' wiring - LIST carries its element child ("item"), CATEGORICAL carries its labels dictionary, STRUCT rejects (the storage tier drops field names). The strings and the nested tree are owned by the schema: the release callback frees them exactly once, recursively.

Parameters

dtypethe dtype to describe
namethe optional field name (null for none)

Returns

the schema (caller must call release).

Throws

DataFrameException for STRUCT and non-STRING categorical

labels.