Skip to content

Commit ce4db3c

Browse files
committed
Revert "TST: groupby apply with indexing and colunm aggregation returns the column (pandas-dev#7002)"
This reverts commit 2e77cef.
1 parent aa3654d commit ce4db3c

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pandas/tests/groupby/test_apply.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -961,13 +961,3 @@ def fn(x):
961961
name="col2",
962962
)
963963
tm.assert_series_equal(result, expected)
964-
965-
966-
def test_apply_function_with_indexing_return_column():
967-
# GH: 7002
968-
df = DataFrame({'foo1': ['one', 'two', 'two', 'three', 'one', 'two'],
969-
'foo2': np.random.randn(6)})
970-
result = df.groupby('foo1', as_index=False).apply(lambda x: x.mean())
971-
expected = df.groupby('foo1', as_index=False).mean()
972-
tm.assert_frame_equal(result, expected)
973-
assert 'foo1' in result.columns

0 commit comments

Comments
 (0)