pandas / 1.4.0 / reference / api / pandas.stringdtype.html /

pandas.StringDtype

class pandas. StringDtype ( storage=None ) [source]

Extension dtype for string data.

New in version 1.0.0.

Warning

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

In particular, StringDtype.na_value may change to no longer be numpy.nan.

Parameters
storage :{“python”, “pyarrow”}, optional

If not given, the value of pd.options.mode.string_storage.

Examples

>>> pd.StringDtype()
string[python]
>>> pd.StringDtype(storage="pyarrow")
string[pyarrow]

Attributes

None

Methods

None

© 2008–2022, 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.4.0/reference/api/pandas.StringDtype.html