@@ -207,35 +207,7 @@ class TestCasting(base.BaseCastingTests):
207
207
208
208
209
209
class TestGroupby (base .BaseGroupbyTests ):
210
-
211
- @pytest .mark .parametrize ('as_index' , [True , False ])
212
- def test_groupby_extension_agg (self , as_index , data_for_grouping ):
213
- df = pd .DataFrame ({"A" : [1 , 1 , 2 , 2 , 3 , 3 , 1 , 4 ],
214
- "B" : data_for_grouping })
215
- result = df .groupby ("B" , as_index = as_index ).A .mean ()
216
- _ , index = pd .factorize (data_for_grouping , sort = True )
217
-
218
- # TODO(ExtensionIndex): remove coercion to object
219
- # we don't have an easy way to represent an EA as an Index object
220
- index = pd .Index (index , name = "B" , dtype = object )
221
- expected = pd .Series ([3 , 1 , 4 ], index = index , name = "A" )
222
- if as_index :
223
- self .assert_series_equal (result , expected )
224
- else :
225
- expected = expected .reset_index ()
226
- self .assert_frame_equal (result , expected )
227
-
228
- def test_groupby_extension_no_sort (self , data_for_grouping ):
229
- df = pd .DataFrame ({"A" : [1 , 1 , 2 , 2 , 3 , 3 , 1 , 4 ],
230
- "B" : data_for_grouping })
231
- result = df .groupby ("B" , sort = False ).A .mean ()
232
- _ , index = pd .factorize (data_for_grouping , sort = False )
233
-
234
- # TODO(ExtensionIndex): remove coercion to object
235
- # we don't have an easy way to represent an EA as an Index object
236
- index = pd .Index (index , name = "B" , dtype = object )
237
- expected = pd .Series ([1 , 3 , 4 ], index = index , name = "A" )
238
- self .assert_series_equal (result , expected )
210
+ pass
239
211
240
212
241
213
class TestNumericReduce (base .BaseNumericReduceTests ):
0 commit comments