Skip to content

Commit

Permalink
Review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Aug 25, 2021
1 parent bd9be97 commit 61bc39d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions python/dask_cudf/dask_cudf/accessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ def explode(self):
Examples
--------
>>> import cudf, dask_cudf as dgd
>>> ds = dgd.from_cudf(cudf.Series(
>>> import cudf, dask_cudf
>>> ds = dask_cudf.from_cudf(cudf.Series(
... [{'a': 42, 'b': 'str1', 'c': [-1]},
... {'a': 0, 'b': 'str2', 'c': [400, 500]},
... {'a': 7, 'b': '', 'c': []}]), npartitions=2)
Expand Down
6 changes: 3 additions & 3 deletions python/dask_cudf/dask_cudf/tests/test_accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ def test_dask_struct_field_Int_Error(data):
],
)
def test_struct_explode(data):
expect = pd.DataFrame(data)
got = dgd.from_cudf(Series(data), 2).struct.explode().compute()
expect = Series(data).struct.explode()
got = dgd.from_cudf(Series(data), 2).struct.explode()

assert_eq(expect, got)
assert_eq(expect, got.compute())

0 comments on commit 61bc39d

Please sign in to comment.