-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Introduce Grouper objects internally #7561
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
Merged
Merged
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
71f5e10
Introduce Grouper objects.
dcherian b9500ce
Remove a copy after stacking for a groupby.
dcherian 44f1325
Fix typing
dcherian 1168ab7
[WIP] typing
dcherian c905b74
Cleanup
dcherian 22ad7fa
[WIP]
dcherian 22ac6de
group as Variable?
dcherian 912e5c5
Revert "group as Variable?"
dcherian 60abafe
Small cleanup
dcherian c6bfdaa
De-duplicate alignment check
dcherian a2290aa
Fix resampling
dcherian e863045
Bugfix
dcherian 0d0b2cd
Partial reverts commit 22ad7fa7607cb83832935533a55df1f73c65811d.
dcherian c5daa47
fix tests
dcherian dda40f5
small cleanup
dcherian eb43043
more cleanup
dcherian 8347313
Apply suggestions from code review
Illviljan a89ec14
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] fe4e0a7
Add ResolvedGrouper class
dcherian 0ffc0ad
GroupBy only handles ResolvedGrouper objects.
dcherian 3e9479d
review feedback
dcherian 81319e2
minimize diff
dcherian f271d1b
dataclass
dcherian e07ae31
moar dataclass
dcherian d557418
Add typing
Illviljan 2188a17
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 5a0ba46
$Merge branch 'main' into grouper-objects
dcherian fe0e421
Ignore type checking error.
dcherian 142bc69
Merge branch 'main' into grouper-objects
dcherian 0cc1ba3
Update groupby.py
Illviljan 2e10d3f
Move factorize to _factorize
Illviljan d06bdeb
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 867629f
Update groupby.py
Illviljan 89ab508
Update xarray/core/groupby.py
dcherian 8d7e6b8
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] afe41db
Merge branch 'main' into grouper-objects
dcherian dde8866
Calculate group_indices only when necessary
dcherian b719976
Revert "Calculate group_indices only when necessary"
dcherian 265f1dd
Fix regression from deep copy
dcherian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.