pandas.arrays.ArrowStringArray

class pandas.arrays.ArrowStringArray(values)[source]

Extension array for string data in a pyarrow.ChunkedArray.

New in version 1.2.0.

Warning

ArrowStringArray is considered experimental. The implementation and parts of the API may change without warning.

Parameters
values:pyarrow.Array or pyarrow.ChunkedArray

The array of data.

See also

array

The recommended function for creating a ArrowStringArray.

Series.str

The string methods are available on Series backed by a ArrowStringArray.

Notes

ArrowStringArray returns a BooleanArray for comparison methods.

Examples

>>> pd.array(['This is', 'some text', None, 'data.'], dtype="string[pyarrow]")
<ArrowStringArray>
['This is', 'some text', <NA>, 'data.']
Length: 4, dtype: string

Attributes

None

Methods

None

© 2008–2021, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/1.3.4/reference/api/pandas.arrays.ArrowStringArray.html