diff --git a/python/dask_cudf/dask_cudf/accessors.py b/python/dask_cudf/dask_cudf/accessors.py index 2f69b84ebd4..34626dc42ba 100644 --- a/python/dask_cudf/dask_cudf/accessors.py +++ b/python/dask_cudf/dask_cudf/accessors.py @@ -36,7 +36,7 @@ def field(self, key): lambda s: s.struct.field(key), meta=self.d_series._meta._constructor([], dtype=typ), ) - + def explode(self): """ Creates a dataframe view of the struct column, one column per field. diff --git a/python/dask_cudf/dask_cudf/tests/test_accessor.py b/python/dask_cudf/dask_cudf/tests/test_accessor.py index fe9498e0f03..8a98cdebc84 100644 --- a/python/dask_cudf/dask_cudf/tests/test_accessor.py +++ b/python/dask_cudf/dask_cudf/tests/test_accessor.py @@ -501,6 +501,7 @@ def test_dask_struct_field_Int_Error(data): with pytest.raises(IndexError): got.struct.field(1000).compute() + @pytest.mark.parametrize( "data", [