Skip to content

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

Merged
TomAugspurger merged 7 commits intodask:masterfrom
stsievert:chunk-warning-glm
May 1, 2020
Merged

MAINT: provide potential solutions in warning on "dataframes not accepted"#653
TomAugspurger merged 7 commits intodask:masterfrom
stsievert:chunk-warning-glm

Conversation

@stsievert
Copy link
Copy Markdown
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
Copy Markdown
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