1

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

1
  • Welcome to stack overflow! Please see the guide to How to Ask, and especially, make sure to format your code as a code block, and always post the full traceback - they're full of information that's critical to debugging. Thanks! Commented Jan 27, 2022 at 19:48

1 Answer 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
Sign up to request clarification or add additional context in comments.

1 Comment

Yes, I was looking into that now too. If updating dask is not a viable option, it's also possible to downgrade pandas to a suitable version for compatibility as well, although not the best solution.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.