-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: DataFrameGroupBy.__getitem__ fails to propagate dropna #35078
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
jreback
merged 42 commits into
pandas-dev:master
from
arw2019:groupby-getitem-dropna-doesnt-propagate
Aug 7, 2020
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
23c05f7
add values.dtype.kind==f branch to array_with_unit_datetime
arw2019 f564d48
revert pandas/_libs/tslib.pyx
arw2019 afe1869
added cast_from_unit definition for float
arw2019 c2594e0
revert accidental changes
arw2019 ef36084
revert changes
arw2019 cd92bc7
revert accidental changes
arw2019 077bd8e
update Grouping.indicies to return for nan values
arw2019 72f66d4
updated _GroupBy._get_index to return for nan values
arw2019 c5c3a28
revert accidental changes
arw2019 0214470
revert accidental changes
arw2019 2a3a86b
revert accidental changes
arw2019 cf71b75
styling change
arw2019 9051166
added tests
arw2019 84e04c0
fixed groupby/groupby.py's _get_indicies
arw2019 86ce781
removed debug statement
arw2019 7090e2d
fixed naming error in test
arw2019 68d9b78
remove type coercion block
arw2019 9caba29
added missing values handing for _GroupBy.get_group method
arw2019 8e3a460
updated indicies for case dropna=True
arw2019 b2ed957
cleaned up syntax
arw2019 6d87151
cleaned up syntax
arw2019 c67e072
removed print statements
arw2019 ed338e1
_transform_general: add a check that we don't accidentally upcast
arw2019 9ffef45
_transform_general: add int32, float32 to upcasting check
arw2019 736ac69
rewrite for loop as list comprehension
arw2019 68902eb
rewrote if statement as dict comp + ternary
arw2019 c6668f0
fixed small bug in list comp in groupby/groupby.py
arw2019 46949ea
deleted debug statement in groupby/groupby.py
arw2019 e16a495
rewrite _get_index using next_iter to set default value
arw2019 e00d71d
update exepcted test_groupby_nat_exclude for new missing values handling
arw2019 6d5a441
remove print statement
arw2019 9c24cf2
reworked solution
arw2019 5637c3e
fixed PEP8 issue
arw2019 29c13f6
run pre-commit checks
arw2019 2ea68af
styling fix
arw2019 3f5c6d6
update whatnew + styling improvements
arw2019 10147b0
move NaN handling to _get_indicies
arw2019 c9f6f7e
removed 1.1 release note
arw2019 9b536dd
redo solution - modify SeriesGroupBy._transform_general only
arw2019 2c9de8e
Merge remote-tracking branch 'upstream/master' into groupby-getitem-d…
arw2019 8d991d5
rewrite case + rewrite tests w fixtures
arw2019 570ce21
fix mypy error
arw2019 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
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.