Skip to content

Warn when grouping by dask array.#6788

Closed
dcherian wants to merge 2 commits intopydata:mainfrom
dcherian:groupby-warn-dask
Closed

Warn when grouping by dask array.#6788
dcherian wants to merge 2 commits intopydata:mainfrom
dcherian:groupby-warn-dask

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