Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

pandas.Series.struct.dtypes#

Series.struct.dtypes[source]#

Return the dtype object of each child field of the struct.

Returns:
pandas.Series

The data type of each child field.

Examples

>>>importpyarrowaspa>>>s=pd.Series(...[...{"version":1,"project":"pandas"},...{"version":2,"project":"pandas"},...{"version":1,"project":"numpy"},...],...dtype=pd.ArrowDtype(pa.struct(...[("version",pa.int64()),("project",pa.string())]...))...)>>>s.struct.dtypesversion     int64[pyarrow]project    string[pyarrow]dtype: object

[8]ページ先頭

©2009-2025 Movatter.jp