@@ -144,7 +144,6 @@ def test_groupby_raises_string(
144144 ),
145145 "diff" : (TypeError , "unsupported operand type" ),
146146 "ffill" : (None , "" ),
147- "fillna" : (None , "" ),
148147 "first" : (None , "" ),
149148 "idxmax" : (None , "" ),
150149 "idxmin" : (None , "" ),
@@ -211,10 +210,7 @@ def test_groupby_raises_string(
211210 elif groupby_func == "corrwith" :
212211 msg = "Cannot perform reduction 'mean' with string dtype"
213212
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" :
218214 warn_msg = "DataFrameGroupBy.corrwith is deprecated"
219215 else :
220216 warn_msg = ""
@@ -301,7 +297,6 @@ def test_groupby_raises_datetime(
301297 "cumsum" : (TypeError , "datetime64 type does not support operation 'cumsum'" ),
302298 "diff" : (None , "" ),
303299 "ffill" : (None , "" ),
304- "fillna" : (None , "" ),
305300 "first" : (None , "" ),
306301 "idxmax" : (None , "" ),
307302 "idxmin" : (None , "" ),
@@ -333,10 +328,7 @@ def test_groupby_raises_datetime(
333328 "var" : (TypeError , "datetime64 type does not support operation 'var'" ),
334329 }[groupby_func ]
335330
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" :
340332 warn_msg = "DataFrameGroupBy.corrwith is deprecated"
341333 else :
342334 warn_msg = ""
@@ -457,7 +449,6 @@ def test_groupby_raises_category(
457449 r"unsupported operand type\(s\) for -: 'Categorical' and 'Categorical'" ,
458450 ),
459451 "ffill" : (None , "" ),
460- "fillna" : (None , "" ), # no-op with CoW
461452 "first" : (None , "" ),
462453 "idxmax" : (None , "" ),
463454 "idxmin" : (None , "" ),
@@ -532,10 +523,7 @@ def test_groupby_raises_category(
532523 ),
533524 }[groupby_func ]
534525
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" :
539527 warn_msg = "DataFrameGroupBy.corrwith is deprecated"
540528 else :
541529 warn_msg = ""
@@ -650,7 +638,6 @@ def test_groupby_raises_category_on_category(
650638 ),
651639 "diff" : (TypeError , "unsupported operand type" ),
652640 "ffill" : (None , "" ),
653- "fillna" : (None , "" ), # no-op with CoW
654641 "first" : (None , "" ),
655642 "idxmax" : (ValueError , "empty group due to unobserved categories" )
656643 if empty_groups
@@ -710,10 +697,7 @@ def test_groupby_raises_category_on_category(
710697 ),
711698 }[groupby_func ]
712699
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" :
717701 warn_msg = "DataFrameGroupBy.corrwith is deprecated"
718702 else :
719703 warn_msg = ""
0 commit comments