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

GroupBy(chunked-array) #9522

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

GroupBy(chunked-array) #9522

wants to merge 12 commits into from

Conversation

dcherian
Copy link
Contributor

@dcherian dcherian commented Sep 19, 2024

This came together quickly last night ;)

TODO:

  • decide on backwards compatibility: we used to eagerly compute dask arrays, now it errors.

cc @bradyrx

@dcherian dcherian marked this pull request as draft September 19, 2024 16:44
@dcherian
Copy link
Contributor Author

dcherian commented Sep 20, 2024

This is ready for review. It is backwards-incompatible. Previously when grouping by a dask array we would just compute it eagerly. It has been like that for a very long time, so perhaps a deprecation cycle is needed. Thoughts?

@dcherian dcherian marked this pull request as ready for review September 20, 2024 02:57
@@ -190,8 +192,8 @@ def values(self) -> range:
return range(self.size)

@property
def data(self) -> range:
return range(self.size)
def data(self) -> np.ndarray:
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for typing

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

Successfully merging this pull request may close these issues.

Allow grouping by dask variables Ordered Groupby Keys
2 participants