- API reference
- pandas arrays, scalars, and data types
- pandas.array...
pandas.arrays.ArrowExtensionArray#
- classpandas.arrays.ArrowExtensionArray(values)[source]#
Pandas ExtensionArray backed by a PyArrow ChunkedArray.
Warning
ArrowExtensionArray is considered experimental. The implementation andparts of the API may change without warning.
- Parameters:
- valuespyarrow.Array or pyarrow.ChunkedArray
Attributes
None
Methods
None
- Returns:
- ArrowExtensionArray
Notes
Most methods are implemented usingpyarrow compute functions.Some methods may either raise an exception or raise a
PerformanceWarning
if anassociated compute function is not available based on the installed version of PyArrow.Please install the latest version of PyArrow to enable the best functionality and avoidpotential bugs in prior versions of PyArrow.
Examples
Create an ArrowExtensionArray with
pandas.array()
:>>>pd.array([1,1,None],dtype="int64[pyarrow]")<ArrowExtensionArray>[1, 1, <NA>]Length: 3, dtype: int64[pyarrow]
On this page