Skip to content

Commit

Permalink
Add lazy registration for cudf
Browse files Browse the repository at this point in the history
This is similar to how we handle cupy or pydata/sparse today
  • Loading branch information
mrocklin committed Jan 8, 2019
1 parent 9ebc7f1 commit 8d51bbe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions dask/dataframe/methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,15 @@ def _get_level_values(x, n):
concat_dispatch = Dispatch('concat')


@concat_dispatch.register_lazy('cudf')
def register_cudf():
import cudf
concat_dispatch.register(
(cudf.DataFrame, cudf.Series, cudf.Index),
cudf.concat
)


def concat(dfs, axis=0, join='outer', uniform=False, filter_warning=True):
"""Concatenate, handling some edge cases:
Expand Down

0 comments on commit 8d51bbe

Please sign in to comment.