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
>>> 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
© 2008–2011, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
© 2011–2025, Open source contributors
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/2.3.0/reference/api/pandas.Series.struct.dtypes.html