@@ -104,6 +104,7 @@ def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manage
104104 expected = DataFrame ({0 : Series (cat .astype (object ), dtype = object ), 1 : range (3 )})
105105 tm .assert_frame_equal (df , expected )
106106
107+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
107108 @pytest .mark .parametrize ("has_ref" , [True , False ])
108109 @pytest .mark .parametrize ("box" , [array , Series ])
109110 def test_iloc_setitem_ea_inplace (
@@ -432,6 +433,7 @@ def test_iloc_getitem_slice_dups(self):
432433 tm .assert_frame_equal (df .iloc [10 :, :2 ], df2 )
433434 tm .assert_frame_equal (df .iloc [10 :, 2 :], df1 )
434435
436+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
435437 @pytest .mark .parametrize ("has_ref" , [True , False ])
436438 def test_iloc_setitem (self , warn_copy_on_write , has_ref ):
437439 df = DataFrame (
@@ -457,6 +459,7 @@ def test_iloc_setitem(self, warn_copy_on_write, has_ref):
457459 expected = Series ([0 , 1 , 0 ], index = [4 , 5 , 6 ])
458460 tm .assert_series_equal (s , expected )
459461
462+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
460463 @pytest .mark .parametrize ("has_ref" , [True , False ])
461464 def test_iloc_setitem_axis_argument (self , has_ref ):
462465 # GH45032
@@ -478,6 +481,7 @@ def test_iloc_setitem_axis_argument(self, has_ref):
478481 df .iloc (axis = 1 )[2 ] = 5
479482 tm .assert_frame_equal (df , expected )
480483
484+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
481485 @pytest .mark .parametrize ("has_ref" , [True , False ])
482486 def test_iloc_setitem_list (self , has_ref ):
483487 # setitem with an iloc list
@@ -686,6 +690,7 @@ def test_iloc_getitem_doc_issue(self, using_array_manager):
686690 expected = DataFrame (arr [1 :5 , 2 :4 ], index = index [1 :5 ], columns = columns [2 :4 ])
687691 tm .assert_frame_equal (result , expected )
688692
693+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
689694 @pytest .mark .parametrize ("has_ref" , [True , False ])
690695 def test_iloc_setitem_series (self , has_ref ):
691696 df = DataFrame (
@@ -723,6 +728,7 @@ def test_iloc_setitem_series(self, has_ref):
723728 expected = Series ([0 , 1 , 2 , 3 , 4 , 5 ])
724729 tm .assert_series_equal (result , expected )
725730
731+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
726732 @pytest .mark .parametrize ("has_ref" , [True , False ])
727733 def test_iloc_setitem_list_of_lists (self , has_ref ):
728734 # GH 7551
@@ -745,6 +751,7 @@ def test_iloc_setitem_list_of_lists(self, has_ref):
745751 expected = DataFrame ({"A" : ["a" , "b" , "x" , "y" , "e" ], "B" : [5 , 6 , 11 , 13 , 9 ]})
746752 tm .assert_frame_equal (df , expected )
747753
754+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
748755 @pytest .mark .parametrize ("has_ref" , [True , False ])
749756 @pytest .mark .parametrize ("indexer" , [[0 ], slice (None , 1 , None ), np .array ([0 ])])
750757 @pytest .mark .parametrize ("value" , [["Z" ], np .array (["Z" ])])
@@ -1062,6 +1069,7 @@ def test_iloc_setitem_bool_indexer(self, klass):
10621069 expected = DataFrame ({"flag" : ["x" , "y" , "z" ], "value" : [2 , 3 , 4 ]})
10631070 tm .assert_frame_equal (df , expected )
10641071
1072+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
10651073 @pytest .mark .parametrize ("has_ref" , [True , False ])
10661074 @pytest .mark .parametrize ("indexer" , [[1 ], slice (1 , 2 )])
10671075 def test_iloc_setitem_pure_position_based (self , indexer , has_ref ):
@@ -1074,6 +1082,7 @@ def test_iloc_setitem_pure_position_based(self, indexer, has_ref):
10741082 expected = DataFrame ({"a" : [1 , 2 , 3 ], "b" : [11 , 12 , 13 ], "c" : [7 , 8 , 9 ]})
10751083 tm .assert_frame_equal (df2 , expected )
10761084
1085+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
10771086 @pytest .mark .parametrize ("has_ref" , [True , False ])
10781087 def test_iloc_setitem_dictionary_value (self , has_ref ):
10791088 # GH#37728
@@ -1302,6 +1311,7 @@ def test_iloc_float_raises(
13021311 ):
13031312 obj .iloc [3.0 ] = 0
13041313
1314+ @pytest .mark .filterwarnings ("ignore:Setting a value on a view:FutureWarning" )
13051315 @pytest .mark .parametrize ("has_ref" , [True , False ])
13061316 def test_iloc_getitem_setitem_fancy_exceptions (self , float_frame , has_ref ):
13071317 with pytest .raises (IndexingError , match = "Too many indexers" ):
0 commit comments