Skip to content

Commit

Permalink
TST: deterministic test case (pandas-dev#7002)
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli committed Jun 8, 2020
1 parent e8f181c commit 0bd567c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pandas/tests/groupby/test_apply.py
Original file line number Diff line number Diff line change
Expand Up @@ -968,10 +968,9 @@ def test_apply_function_with_indexing_return_column():
df = DataFrame(
{
"foo1": ["one", "two", "two", "three", "one", "two"],
"foo2": np.random.randn(6),
"foo2": [1, 2, 3, 4, 5, 6],
}
)
result = df.groupby("foo1", as_index=False).apply(lambda x: x.mean())
expected = df.groupby("foo1", as_index=False).mean()
tm.assert_frame_equal(result, expected)
assert "foo1" in result.columns

0 comments on commit 0bd567c

Please sign in to comment.