From dfd3e097fe7b1fe004db7965958c0f1d77ec1a61 Mon Sep 17 00:00:00 2001 From: "Jon M. Mease" Date: Mon, 3 Oct 2016 20:09:43 -0400 Subject: [PATCH] Added test case for GH 14334 --- pandas/tests/test_groupby.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/tests/test_groupby.py b/pandas/tests/test_groupby.py index f3791ee1d5c91..b5e2d0d361c91 100644 --- a/pandas/tests/test_groupby.py +++ b/pandas/tests/test_groupby.py @@ -442,6 +442,11 @@ def test_grouper_creation_bug(self): result = g.sum() assert_frame_equal(result, expected) + # GH14334 + g = df.groupby([pd.Grouper(key='A')]) + result = g.sum() + assert_frame_equal(result, expected) + # GH8866 s = Series(np.arange(8, dtype='int64'), index=pd.MultiIndex.from_product(