File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -408,8 +408,14 @@ def test_groupby_grouper_f_sanity_checked(self):
408
408
# when the elements are Timestamp.
409
409
# the result is Index[0:6], very confusing.
410
410
411
- msg = r"Grouper result violates len\(labels\) == len\(data\)"
412
- with pytest .raises (AssertionError , match = msg ):
411
+ # GH36158
412
+ # issue references errors for groupby
413
+ # created with functions (lambda or named)
414
+ # after changes applied under that issue this test fails with a
415
+ # more sensible error than the previous assertion.
416
+
417
+ msg = r"'Timestamp' object is not subscriptable"
418
+ with pytest .raises (TypeError , match = msg ):
413
419
ts .groupby (lambda key : key [0 :6 ])
414
420
415
421
def test_grouping_error_on_multidim_input (self , df ):
You can’t perform that action at this time.
0 commit comments