NestedDtype.from_pandas_arrow_dtype#
- classmethod NestedDtype.from_pandas_arrow_dtype(pandas_arrow_dtype: ArrowDtype) Self[source]#
Construct NestedDtype from a pandas.ArrowDtype.
- Parameters:
pandas_arrow_dtype (ArrowDtype) – The pandas.ArrowDtype to construct NestedDtype from. Must be struct-list or list-struct type.
- Returns:
The constructed NestedDtype.
- Return type:
- Raises:
ValueError – If the given dtype is not a valid nested type.