class_docstr: Struct methods for Series
class_docstr_tok: ["Struct","methods","for","Series"]
docstr: Return a DataFrame whose columns are the fields of this struct Series.
  
  Notes
  -----
  Note that a copy of the columns is made.
  
  Examples
  --------
  >>> s
  0    {'a': 1, 'b': 'x'}
  1    {'a': 2, 'b': 'y'}
  2    {'a': 3, 'b': 'z'}
  3    {'a': 4, 'b': 'a'}
  dtype: struct
  
  >>> s.struct.explode()
     a  b
  0  1  x
  1  2  y
  2  3  z
  3  4  a
docstr_tok: ["Return","a","DataFrame","whose","columns","are","the","fields","of","this","struct","Series",".","Notes","--","--","-","Note","that","a","copy","of","the","columns","is","made",".","Examples","--","--","--","--",">",">",">","s","0","{","'","a","'",":","1",",","'","b","'",":","'","x","'","}","1","{","'","a","'",":","2",",","'","b","'",":","'","y","'","}","2","{","'","a","'",":","3",",","'","b","'",":","'","z","'","}","3","{","'","a","'",":","4",",","'","b","'",":","'","a","'","}","dtype",":","struct",">",">",">","s.struct.explode","(",")","a","b","0","1","x","1","2","y","2","3","z","3","4","a"]
code: def explode(self):
      """
      Return a DataFrame whose columns are the fields of this struct Series.
  
      Notes
      -----
      Note that a copy of the columns is made.
  
      Examples
      --------
      >>> s
      0    {'a': 1, 'b': 'x'}
      1    {'a': 2, 'b': 'y'}
      2    {'a': 3, 'b': 'z'}
      3    {'a': 4, 'b': 'a'}
      dtype: struct
  
      >>> s.struct.explode()
         a  b
      0  1  x
      1  2  y
      2  3  z
      3  4  a
      """
      return cudf.DataFrame._from_data(
          cudf.core.column_accessor.ColumnAccessor(
              {
                  name: col.copy(deep=True)
                  for name, col in zip(
                      self._column.dtype.fields, self._column.children
                  )
              }
          )
      )
  
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 3 for calling the StructMethods obj's underlying member method code with example usage: obj.explode() and returns: cudf