Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.ArrowDtype#

classpandas.ArrowDtype(pyarrow_dtype)[source]#

An ExtensionDtype for PyArrow data types.

Warning

ArrowDtype is considered experimental. The implementation andparts of the API may change without warning.

While mostdtype arguments can accept the “string”constructor, e.g."int64[pyarrow]", ArrowDtype is usefulif the data type contains parameters likepyarrow.timestamp.

Parameters:
pyarrow_dtypepa.DataType

An instance of apyarrow.DataType.

Attributes

pyarrow_dtype

Methods

None

Returns:
ArrowDtype

Examples

>>>importpyarrowaspa>>>pd.ArrowDtype(pa.int64())int64[pyarrow]

Types with parameters must be constructed with ArrowDtype.

>>>pd.ArrowDtype(pa.timestamp("s",tz="America/New_York"))timestamp[s, tz=America/New_York][pyarrow]>>>pd.ArrowDtype(pa.list_(pa.int64()))list<item: int64>[pyarrow]

[8]ページ先頭

©2009-2025 Movatter.jp