Skip to content

Commit 7f8005d

Browse files
committed
BUG: fix test in rolling groupby (pandas-dev#44821)
Fixes test due to changes in GroupBy.__iter__ (see pandas-dev#44821). As the column `c` wasn't selected on the manual computation, it failed when trying to set it as an index.
1 parent dd79198 commit 7f8005d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/window/test_base_indexer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_rolling_groupby_with_fixed_forward_many(group_keys, window_size):
437437
result = df.groupby("a")["b"].rolling(window=indexer, min_periods=1).sum()
438438
result.index.names = ["a", "c"]
439439

440-
groups = df.groupby("a")[["a", "b"]]
440+
groups = df.groupby("a")[["a", "b", "c"]]
441441
manual = concat(
442442
[
443443
g.assign(

0 commit comments

Comments
 (0)