cudf.core.dtypes.StructDtype.fields#

property StructDtype.fields: dict[str, DtypeObj][source]#

Returns an ordered dict of column name and dtype key-value.

Examples

>>> import cudf
>>> struct_dtype = cudf.StructDtype({"a": "int64", "b": "float64"})
>>> struct_dtype
StructDtype({'a': dtype('int64'), 'b': dtype('float64')})
>>> struct_dtype.fields
{'a': dtype('int64'), 'b': dtype('float64')}