Skip to content

Commit 0bd567c

Browse files
committed
TST: deterministic test case (pandas-dev#7002)
1 parent e8f181c commit 0bd567c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/groupby/test_apply.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -968,10 +968,9 @@ def test_apply_function_with_indexing_return_column():
968968
df = DataFrame(
969969
{
970970
"foo1": ["one", "two", "two", "three", "one", "two"],
971-
"foo2": np.random.randn(6),
971+
"foo2": [1, 2, 3, 4, 5, 6],
972972
}
973973
)
974974
result = df.groupby("foo1", as_index=False).apply(lambda x: x.mean())
975975
expected = df.groupby("foo1", as_index=False).mean()
976976
tm.assert_frame_equal(result, expected)
977-
assert "foo1" in result.columns

0 commit comments

Comments
 (0)