docstr: Extract children of the specified struct column
  in the Series
  Parameters
  ----------
  key: int or str
      index/position or field name of the respective
      struct column
  Returns
  -------
  Series
  Examples
  --------
  >>> s = cudf.Series([{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])
  >>> ds = dask_cudf.from_cudf(s, 2)
  >>> ds.struct.field(0).compute()
  0    1
  1    3
  dtype: int64
  >>> ds.struct.field('a').compute()
  0    1
  1    3
  dtype: int64
docstr_tok: ["Extract","children","of","the","specified","struct","column","in","the","Series","Parameters","--","--","--","--","--","key",":","int","or","str","index\/position","or","field","name","of","the","respective","struct","column","Returns","--","--","--","-","Series","Examples","--","--","--","--",">",">",">","s","=","cudf.Series","(","[","{","'","a","'",":","1",",","'","b","'",":","2","}",",","{","'","a","'",":","3",",","'","b","'",":","4","}","]",")",">",">",">","ds","=","dask_cudf.from_cudf","(","s",",","2",")",">",">",">","ds.struct.field","(","0",")",".compute","(",")","0","1","1","3","dtype",":","int64",">",">",">","ds.struct.field","(","'","a","'",")",".compute","(",")","0","1","1","3","dtype",":","int64"]
code: def field(self, key):
      """
      Extract children of the specified struct column
      in the Series
      Parameters
      ----------
      key: int or str
          index/position or field name of the respective
          struct column
      Returns
      -------
      Series
      Examples
      --------
      >>> s = cudf.Series([{'a': 1, 'b': 2}, {'a': 3, 'b': 4}])
      >>> ds = dask_cudf.from_cudf(s, 2)
      >>> ds.struct.field(0).compute()
      0    1
      1    3
      dtype: int64
      >>> ds.struct.field('a').compute()
      0    1
      1    3
      dtype: int64
      """
      typ = self.d_series._meta.struct.field(key).dtype
  
      return self.d_series.map_partitions(
          lambda s: s.struct.field(key),
          meta=self.d_series._meta._constructor([], dtype=typ),
      )
  
file_path: cudf/python/dask_cudf/dask_cudf/accessors.py
label_desc: Use image node_id 2 for calling the StructMethods obj's underlying member method code with example usage: obj.field(key) and returns: self