Skip to content

Commit 8139d8e

Browse files
committed
TST: explicitly constructed expected DataFrame (pandas-dev#7002)
1 parent 787d9ba commit 8139d8e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

pandas/tests/groupby/test_apply.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -972,10 +972,5 @@ def test_apply_function_with_indexing_return_column():
972972
}
973973
)
974974
result = df.groupby("foo1", as_index=False).apply(lambda x: x.mean())
975-
expected = DataFrame(
976-
{
977-
"foo1": ["one", "three", "two"],
978-
"foo2": [3.0, 4.0, 4.0],
979-
}
980-
)
975+
expected = DataFrame({"foo1": ["one", "three", "two"], "foo2": [3.0, 4.0, 4.0],})
981976
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)