'Unable to load Dask data frame -- Expected meta to specify type DataFrame error

I am trying to use Dask to load a fixed width file so I can parse out the columns and load into a database, but I cannot get Dask to load the data frame. I am receiving an error saying the Expected meta to specify type DataFrame, got type pandas.core.frame.DataFrame.

Here is the code:

import dask.dataframe as dd
df == dd.read_csv("S://folder//file.csv")

Can anyone assist as to what I can do differently?

Thanks, phil



Solution 1:[1]

There was a bug with the similar behavior, try to update dask to the latest version, e.g. using:

pip install dask -U

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Alexandra Dudkina