Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: provide potential solutions in warning on "dataframes not accepted" #653

Merged
merged 7 commits into from
May 1, 2020

Conversation

stsievert
Copy link
Member

What does this PR implement?
It modifies message of the TypeError in utils.py if Dask Dataframes are not accepted. It suggests code that may resolve the issue.

I only provide ddf.to_dask_array(...) solutions because Pandas recommends using to_numpy instead of values: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.values.html

Reference issues/PRs
The motivation is #84. I tried to get the code to fail with unknown chunk sizes, but the code worked. Instead, I decided to modify the message about not accepting Dask DataFrames with a potential solution.

(note: I make sure fit_intercept in [True, False] because of #84 (comment)).

@stsievert stsievert changed the title MAINT: better chunk warning in utils.py MAINT: provide potential solutions in warning on "dataframes not accepted" Apr 26, 2020
@TomAugspurger TomAugspurger merged commit 5e5633b into dask:master May 1, 2020
@TomAugspurger
Copy link
Member

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants