Skip to content

Commit 8a7f662

Browse files
change test_groupby_resample_on_api_with_getitem
1 parent bd91de4 commit 8a7f662

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/resample/test_resampler_grouper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def test_getitem_multiple():
139139
def test_groupby_resample_on_api_with_getitem():
140140
# GH 17813
141141
df = DataFrame(
142-
{"id": list("aabbb"), "date": date_range("1-1-2016", periods=5), "data": 1}
142+
{"id": list("aabbb"), "date": date_range("1-1-2016", periods=5), "data": 1},
143+
index=list("xyzab"),
143144
)
144145
exp = df.set_index("date").groupby("id").resample("2D")["data"].sum()
145146
result = df.groupby("id").resample("2D", on="date")["data"].sum()

0 commit comments

Comments
 (0)