There was an error while loading. Please reload this page.
1 parent a0e5a08 commit 132b46bCopy full SHA for 132b46b
pandas/tests/groupby/test_grouping.py
@@ -441,6 +441,7 @@ def test_groupby_grouper_f_sanity_checked(self):
441
msg = "'Timestamp' object is not subscriptable"
442
with pytest.raises(TypeError, match=msg):
443
ts.groupby(lambda key: key[0:6])
444
+
445
result = ts.groupby(lambda x: x).sum()
446
expected = ts.groupby(ts.index).sum()
447
expected.index.freq = None
0 commit comments