@@ -573,32 +573,6 @@ def test_ops_general(op, targop):
573
573
tm .assert_frame_equal (result , expected )
574
574
575
575
576
- def test_ops_not_as_index (reduction_func ):
577
- # GH 21090
578
- # Using as_index=False should not modify grouped column
579
-
580
- if reduction_func in ("corrwith" ,):
581
- pytest .skip ("Test not applicable" )
582
-
583
- if reduction_func in ("nth" , "ngroup" , "size" ,):
584
- pytest .skip ("Skip until behavior is determined (GH #5755)" )
585
-
586
- if reduction_func in ("sem" , "std" ):
587
- pytest .skip ("Function incorrectly modifies keys (GH #10355)" )
588
-
589
- df = DataFrame (np .random .randint (0 , 5 , size = (100 , 2 )), columns = ["a" , "b" ])
590
- expected = getattr (df .groupby ("a" ), reduction_func )().reset_index ()
591
-
592
- result = getattr (df .groupby ("a" , as_index = False ), reduction_func )()
593
- tm .assert_frame_equal (result , expected )
594
-
595
- result = df .groupby ("a" , as_index = False ).agg (reduction_func )
596
- tm .assert_frame_equal (result , expected )
597
-
598
- result = getattr (df .groupby ("a" , as_index = False )["b" ], reduction_func )()
599
- tm .assert_frame_equal (result , expected )
600
-
601
-
602
576
def test_max_nan_bug ():
603
577
raw = """,Date,app,File
604
578
-04-23,2013-04-23 00:00:00,,log080001.log
0 commit comments