-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG/PERF: groupby.transform with unobserved categories #58084
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
rhshadrach
merged 19 commits into
pandas-dev:main
from
undermyumbrella1:fix/type_coercion_for_unobserved_categories
May 8, 2024
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
a52e7fe
Temporarily change observed=True, for groupby.transform
898fd12
Add tests
5311004
Add orig_obj in BaseGroupBy hidden attr
fb548ad
Update tests according to pr comments
baa1b28
Move orig_obj arg in constructor to last param, to account for possib…
30013ee
Move calculation of observed grouper to when initialising groupby
3b9d27b
Only calculate observed_grouper when grouper is absent to account to …
4221c34
Merge branch 'main' into fix/type_coercion_for_unobserved_categories
8588a1e
Remove observed exclusions
8e669d9
Add observed grouper/grouping as cached method
0d9f89d
change return type to grouping
84f83ae
Update rst docs
cbabce0
Update rst docs
bcca14f
Cache observed grouping/grouper instead of self obj
f3a3f63
Update according to pr comments
58e759f
Merge main
7f99b71
Revert unintentional changes
4364440
Revert unintentional changes
5d63405
Merge branch 'main' into fix/type_coercion_for_unobserved_categories
undermyumbrella1 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
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
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.