cudf.core.column.struct.StructMethods.explode#

StructMethods.explode()#

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