We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0588f6f commit 3be9d0eCopy full SHA for 3be9d0e
pandas/tests/window/test_rolling.py
@@ -472,7 +472,8 @@ def test_by_column_not_in_values():
472
df = pd.DataFrame({"A": [1] * 20 + [2] * 12 + [3] * 8, "B": np.arange(40)})
473
474
g = df.groupby("A")
475
+ original_obj = g.obj.copy(deep=True)
476
r = g.rolling(4)
477
result = r.sum()
478
assert "A" not in result.columns
- assert "A" in g.obj.columns # check for side-effects
479
+ tm.assert_frame_equal(g.obj, original_obj) # check for side-effects
0 commit comments