-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce Grouper objects internally (#7561)
* Introduce Grouper objects. * Remove a copy after stacking for a groupby. Upstream bug pandas-dev/pandas#12813 is fixed * Fix typing * [WIP] typing * Cleanup * [WIP] * group as Variable? * Revert "group as Variable?" This reverts commit 2a36e21a031b9e061b932682758551956f3f06d2. * Small cleanup * De-duplicate alignment check * Fix resampling * Bugfix * Partial reverts commit 22ad7fa. * fix tests * small cleanup * more cleanup * Apply suggestions from code review * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add ResolvedGrouper class * GroupBy only handles ResolvedGrouper objects. Much cleaner! * review feedback * minimize diff * dataclass * moar dataclass Co-authored-by: Illviljan <[email protected]> * Add typing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Ignore type checking error. * Update groupby.py * Move factorize to _factorize * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update groupby.py * Update xarray/core/groupby.py * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Calculate group_indices only when necessary * Revert "Calculate group_indices only when necessary" This reverts commit 917c77efb05bacffcf901e61eabb9defc9a429d7. * Fix regression from deep copy --------- Co-authored-by: Illviljan <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
da8746b
commit fde773e
Showing
7 changed files
with
550 additions
and
354 deletions.
There are no files selected for viewing
This file contains 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 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 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 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.