bigframes.pandas.api.typing.StructAccessor.dtypes#

property StructAccessor.dtypes: Series#

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

Examples:

>>> import bigframes.pandas as bpd
>>> s = bpd.Series(
...     [
...         {"version": 1, "project": "pandas"},
...         {"version": 2, "project": "pandas"},
...         {"version": 1, "project": "numpy"},
...     ],
...     dtype=bpd.ArrowDtype(pa.struct(
...         [("version", pa.int64()), ("project", pa.string())]
...     ))
... )
>>> s.struct.dtypes
version     int64[pyarrow]
project    string[pyarrow]
dtype: object
Returns:

A pandas Series with the data type of all child fields.