Skip to content

Commit

Permalink
cover edge case (single row)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjzamora committed Feb 26, 2021
1 parent 56dcbe4 commit e68d4a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/dask_cudf/dask_cudf/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ def _finalize_var(vals):
(local_name, p, depth - 1) for p in range(lstart, lstop)
]
dsk[(local_name, group, depth)] = (_aggregate_var, node_list)
if height == 1:
group = depth = 0
dsk[(name, 0)] = (_finalize_var, (local_name, group, depth))

graph = HighLevelGraph.from_collections(name, dsk, dependencies=[num, ddf])
Expand Down

0 comments on commit e68d4a2

Please sign in to comment.