@@ -144,7 +144,6 @@ def test_groupby_raises_string(
144
144
),
145
145
"diff" : (TypeError , "unsupported operand type" ),
146
146
"ffill" : (None , "" ),
147
- "fillna" : (None , "" ),
148
147
"first" : (None , "" ),
149
148
"idxmax" : (None , "" ),
150
149
"idxmin" : (None , "" ),
@@ -211,10 +210,7 @@ def test_groupby_raises_string(
211
210
elif groupby_func == "corrwith" :
212
211
msg = "Cannot perform reduction 'mean' with string dtype"
213
212
214
- if groupby_func == "fillna" :
215
- kind = "Series" if groupby_series else "DataFrame"
216
- warn_msg = f"{ kind } GroupBy.fillna is deprecated"
217
- elif groupby_func == "corrwith" :
213
+ if groupby_func == "corrwith" :
218
214
warn_msg = "DataFrameGroupBy.corrwith is deprecated"
219
215
else :
220
216
warn_msg = ""
@@ -301,7 +297,6 @@ def test_groupby_raises_datetime(
301
297
"cumsum" : (TypeError , "datetime64 type does not support operation 'cumsum'" ),
302
298
"diff" : (None , "" ),
303
299
"ffill" : (None , "" ),
304
- "fillna" : (None , "" ),
305
300
"first" : (None , "" ),
306
301
"idxmax" : (None , "" ),
307
302
"idxmin" : (None , "" ),
@@ -333,10 +328,7 @@ def test_groupby_raises_datetime(
333
328
"var" : (TypeError , "datetime64 type does not support operation 'var'" ),
334
329
}[groupby_func ]
335
330
336
- if groupby_func == "fillna" :
337
- kind = "Series" if groupby_series else "DataFrame"
338
- warn_msg = f"{ kind } GroupBy.fillna is deprecated"
339
- elif groupby_func == "corrwith" :
331
+ if groupby_func == "corrwith" :
340
332
warn_msg = "DataFrameGroupBy.corrwith is deprecated"
341
333
else :
342
334
warn_msg = ""
@@ -457,7 +449,6 @@ def test_groupby_raises_category(
457
449
r"unsupported operand type\(s\) for -: 'Categorical' and 'Categorical'" ,
458
450
),
459
451
"ffill" : (None , "" ),
460
- "fillna" : (None , "" ), # no-op with CoW
461
452
"first" : (None , "" ),
462
453
"idxmax" : (None , "" ),
463
454
"idxmin" : (None , "" ),
@@ -532,10 +523,7 @@ def test_groupby_raises_category(
532
523
),
533
524
}[groupby_func ]
534
525
535
- if groupby_func == "fillna" :
536
- kind = "Series" if groupby_series else "DataFrame"
537
- warn_msg = f"{ kind } GroupBy.fillna is deprecated"
538
- elif groupby_func == "corrwith" :
526
+ if groupby_func == "corrwith" :
539
527
warn_msg = "DataFrameGroupBy.corrwith is deprecated"
540
528
else :
541
529
warn_msg = ""
@@ -650,7 +638,6 @@ def test_groupby_raises_category_on_category(
650
638
),
651
639
"diff" : (TypeError , "unsupported operand type" ),
652
640
"ffill" : (None , "" ),
653
- "fillna" : (None , "" ), # no-op with CoW
654
641
"first" : (None , "" ),
655
642
"idxmax" : (ValueError , "empty group due to unobserved categories" )
656
643
if empty_groups
@@ -710,10 +697,7 @@ def test_groupby_raises_category_on_category(
710
697
),
711
698
}[groupby_func ]
712
699
713
- if groupby_func == "fillna" :
714
- kind = "Series" if groupby_series else "DataFrame"
715
- warn_msg = f"{ kind } GroupBy.fillna is deprecated"
716
- elif groupby_func == "corrwith" :
700
+ if groupby_func == "corrwith" :
717
701
warn_msg = "DataFrameGroupBy.corrwith is deprecated"
718
702
else :
719
703
warn_msg = ""
0 commit comments