8000 [BUG] Fixed behavior of DataFrameGroupBy.apply to respect _group_selection_context by christopherzimmerman · Pull Request #29131 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

[BUG] Fixed behavior of DataFrameGroupBy.apply to respect _group_selection_context #29131

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

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
78de38c
Modifed tests and fixed bug in groupby/apply
christopherzimmerman Oct 21, 2019
63677e7
fixed resample docstring
christopherzimmerman Oct 21, 2019
1d99d9c
Added fixture and cleaned up tests
christopherzimmerman Oct 21, 2019
98bc673
Whatsnew and added match to test
christopherzimmerman Oct 23, 2019
fbf3202
conftest docstring and whatsnew example
christopherzimmerman Oct 23, 2019
947a5bd
Changes to tests and whatsnew
christopherzimmerman Oct 28, 2019
8c3efb0
Merge branch 'master' into apply_context
christopherzimmerman Oct 28, 2019
fa21e29
Had to parameterize the test because of group keys
christopherzimmerman Oct 28, 2019
a0a9aa5
Merge branch 'apply_context' of https://github.com/christopherzimmerm…
christopherzimmerman Oct 28, 2019
7070169
Merge branch 'master' into apply_context
christopherzimmerman Nov 1, 2019
76815f1
Update test_transform.py
christopherzimmerman Nov 1, 2019
6c49a16
Update test_groupby.py
christopherzimmerman Nov 1, 2019
8a4c1f8
Updated syntax in ipython block
christopherzimmerman Nov 1, 2019
ccf940d
Merge branch 'apply_context' of https://github.com/christopherzimmerm…
christopherzimmerman Nov 1, 2019
b7d056d
Merged from master
christopherzimmerman Nov 20, 2019
cfacfc1
Indent
christopherzimmerman Nov 20, 2019
c384c09
Merge remote-tracking branch 'upstream/master' into apply_context
christopherzimmerman Jan 2, 2020
91d1931
Merged upstream 8000
christopherzimmerman Feb 3, 2020
83be029
More tests changed with bad apply behavior
christopherzimmerman Feb 4, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update test_groupby.py
  • Loading branch information
christopherzimmerman authored Nov 1, 2019
commit 6c49a16cf834d671fcc071e83c5738e887728f21
4 changes: 2 additions & 2 deletions pandas/tests/groupby/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -952,7 +952,7 @@ def test_no_mutate_but_looks_like():
lambda x: x[:].key
)
result2 = df.groupby("key", group_keys=True, as_index=False).apply(lambda x: x.key)
assert_series_equal(result1, result2)
tm.assert_series_equal(result1, result2)


def test_groupby_series_indexed_differently():
Expand Down Expand Up @@ -1352,7 +1352,7 @@ def test_dont_clobber_name_column(as_index):
if as_index:
df.pop("key")

assert_frame_equal(result, df)
tm.assert_frame_equal(result, df)


def test_skip_group_keys():
Expand Down
0