Class ArrowDtype (1.26.0)

ArrowDtype(pyarrow_dtype: pyarrow.lib.DataType)

An ExtensionDtype for PyArrow data types.

Parameter

Name Description
pyarrow_dtype pa.DataType .. attribute:: pyarrow_dtype :noindex: .. method:: None :noindex:

An instance of a pyarrow.DataType https://arrow.apache.org/docs/python/api/datatypes.html#factory-functions__.

Properties

name

A string identifying the data type.

type

Returns associated scalar type.

Methods

__from_arrow__

__from_arrow__(array: pyarrow.lib.Array | pyarrow.lib.ChunkedArray)

Construct IntegerArray/FloatingArray from pyarrow Array/ChunkedArray.

construct_array_type

construct_array_type() -> type_t[ArrowExtensionArray]

Return the array type associated with this dtype.

construct_from_string

construct_from_string(string: str) -> pandas.core.dtypes.dtypes.ArrowDtype

Construct this type from a string.

Parameter
Name Description
string str

string should follow the format f"{pyarrow_type}[pyarrow]" e.g. int64[pyarrow]