pandas.Series.struct.dtypes # 系列.结构。数据类型[来源] # 返回结构体每个子字段的 dtype 对象。 返回: 熊猫系列每个子字段的数据类型。 例子 >>> import pyarrow as pa >>> 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.dtypes version int64[pyarrow] project string[pyarrow] dtype: object