Skip to content

Warn when grouping by dask array. #6788

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

Closed
wants to merge 2 commits into from

Conversation

dcherian
Copy link
Contributor

Currently computes eagerly; we want to not do that in the future

(broken out from #6689)

if not isinstance(group, _DummyGroup) and is_duck_dask_array(group.data):
warnings.warn(
"Grouping by a dask array computes that array. "
"This will raise an error in the future. "
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My naive dream would have been that it successfully grouped the dask array lazily in the future. But that's maybe for the even further future if even possible?

Copy link
Contributor Author

@dcherian dcherian Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤦 I don't know what I was thinking...

Yes we can now do that with flox...

@dcherian dcherian closed this Jul 15, 2022
@dcherian dcherian deleted the groupby-warn-dask branch October 18, 2022 19:15
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