@@ -818,15 +818,15 @@ def test_iloc_setitem_bool_indexer(self, klass):
818
818
tm .assert_frame_equal (df , expected )
819
819
820
820
@pytest .mark .parametrize ("indexer" , [[1 ], slice (1 , 2 )])
821
- def test_setitem_iloc_pure_position_based (self , indexer ):
821
+ def test_iloc_setitem_pure_position_based (self , indexer ):
822
822
# GH#22046
823
823
df1 = DataFrame ({"a2" : [11 , 12 , 13 ], "b2" : [14 , 15 , 16 ]})
824
824
df2 = DataFrame ({"a" : [1 , 2 , 3 ], "b" : [4 , 5 , 6 ], "c" : [7 , 8 , 9 ]})
825
825
df2 .iloc [:, indexer ] = df1 .iloc [:, [0 ]]
826
826
expected = DataFrame ({"a" : [1 , 2 , 3 ], "b" : [11 , 12 , 13 ], "c" : [7 , 8 , 9 ]})
827
827
tm .assert_frame_equal (df2 , expected )
828
828
829
- def test_setitem_iloc_dictionary_value (self ):
829
+ def test_iloc_setitem_dictionary_value (self ):
830
830
# GH#37728
831
831
df = DataFrame ({"x" : [1 , 2 ], "y" : [2 , 2 ]})
832
832
rhs = dict (x = 9 , y = 99 )
@@ -1000,7 +1000,7 @@ def test_iloc_getitem_nonunique(self):
1000
1000
ser = Series ([0 , 1 , 2 ], index = [0 , 1 , 0 ])
1001
1001
assert ser .iloc [2 ] == 2
1002
1002
1003
- def test_setitem_iloc_pure_position_based (self ):
1003
+ def test_iloc_setitem_pure_position_based (self ):
1004
1004
# GH#22046
1005
1005
ser1 = Series ([1 , 2 , 3 ])
1006
1006
ser2 = Series ([4 , 5 , 6 ], index = [1 , 0 , 2 ])
0 commit comments