class_docstr: Struct methods for Series
class_docstr_tok: ["Struct","methods","for","Series"]
code: def __init__(self, parent=None):
      if not isinstance(parent.dtype, StructDtype):
          raise AttributeError(
              "Can only use .struct accessor with a 'struct' dtype"
          )
      super().__init__(parent=parent)
  
imports: from __future__ import annotations
  from functools import cached_property
  from typing import Optional
  import pandas
  import pyarrow
  import cudf
  from cudf._typing import Dtype
  from cudf.core.column import ColumnBase, build_struct_column
  from cudf.core.column.methods import ColumnMethods
  from cudf.core.dtypes import StructDtype
  from cudf.core.missing import NA
label_desc: Use image node_id 1 to create a new StructMethods object from inherited base classes: ColumnMethods with example: obj = StructMethods(parent)