cudf.core.dtypes.ListDtype.leaf_type#

property ListDtype.leaf_type#

Returns the type of the leaf values.

Examples

>>> import cudf
>>> deep_nested_type = cudf.ListDtype(cudf.ListDtype(cudf.ListDtype("float32")))
>>> deep_nested_type
ListDtype(ListDtype(ListDtype(float32)))
>>> deep_nested_type.leaf_type
'float32'