NestedDtype.to_pandas_arrow_dtype

NestedDtype.to_pandas_arrow_dtype#

NestedDtype.to_pandas_arrow_dtype(list_struct: bool = False) → ArrowDtype[source]#

Convert NestedDtype to a pandas.ArrowDtype.

Parameters:

list_struct (bool, default False) – If False (default) use pyarrow struct-list type, otherwise use pyarrow list-struct type.

Returns:

The corresponding pandas.ArrowDtype.

Return type:

ArrowDtype