Skip to content

Error with dd.utils.make_meta #7731

@trivialfis

Description

@trivialfis

Reproduce:

>>> meta = {0: 'feat4'}
>>> from dask import dataframe as dd
>>> dd.utils.make_meta(meta)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/fis/Workspace/XGBoost/lib/python3.8/site-packages/dask/utils.py", line 511, in __call__
    meth = self.dispatch(type(arg))
  File "/home/fis/Workspace/XGBoost/lib/python3.8/site-packages/dask/utils.py", line 505, in dispatch
    raise TypeError("No dispatch for {0}".format(cls))
TypeError: No dispatch for <class 'dict'>
>>> 

The error happens only with2021.05.01, works fine with 2021.05.0.

Versions

dask/distributed version: '2021.05.1'
install method: pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions