@@ -82,9 +82,7 @@ def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manage
8282
8383 overwrite = isinstance (key , slice ) and key == slice (None )
8484
85- if overwrite or using_array_manager :
86- # TODO(ArrayManager) we always overwrite because ArrayManager takes
87- # the "split" path, which still overwrites
85+ if overwrite :
8886 # TODO: GH#39986 this probably shouldn't behave differently
8987 expected = DataFrame ({0 : cat })
9088 assert not np .shares_memory (df .values , orig_vals )
@@ -108,13 +106,13 @@ def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manage
108106 tm .assert_frame_equal (df , expected )
109107
110108 @pytest .mark .parametrize ("box" , [array , Series ])
111- def test_iloc_setitem_ea_inplace (self , frame_or_series , box , using_array_manager ):
109+ def test_iloc_setitem_ea_inplace (self , frame_or_series , box ):
112110 # GH#38952 Case with not setting a full column
113111 # IntegerArray without NAs
114112 arr = array ([1 , 2 , 3 , 4 ])
115113 obj = frame_or_series (arr .to_numpy ("i8" ))
116114
117- if frame_or_series is Series or not using_array_manager :
115+ if frame_or_series is Series :
118116 values = obj .values
119117 else :
120118 values = obj [0 ].values
@@ -131,10 +129,7 @@ def test_iloc_setitem_ea_inplace(self, frame_or_series, box, using_array_manager
131129 if frame_or_series is Series :
132130 assert obj .values is values
133131 else :
134- if using_array_manager :
135- assert obj [0 ].values is values
136- else :
137- assert obj .values .base is values .base and values .base is not None
132+ assert np .shares_memory (obj [0 ].values , values )
138133
139134 def test_is_scalar_access (self ):
140135 # GH#32085 index with duplicates doesn't matter for _is_scalar_access
@@ -999,9 +994,6 @@ def test_iloc_getitem_readonly_key(self):
999994 expected = df ["data" ].loc [[1 , 3 , 6 ]]
1000995 tm .assert_series_equal (result , expected )
1001996
1002- # TODO(ArrayManager) setting single item with an iterable doesn't work yet
1003- # in the "split" path
1004- @td .skip_array_manager_not_yet_implemented
1005997 def test_iloc_assign_series_to_df_cell (self ):
1006998 # GH 37593
1007999 df = DataFrame (columns = ["a" ], index = [0 ])
@@ -1224,8 +1216,6 @@ def test_iloc_getitem_setitem_fancy_exceptions(self, float_frame):
12241216 # GH#32257 we let numpy do validation, get their exception
12251217 float_frame .iloc [:, :, :] = 1
12261218
1227- # TODO(ArrayManager) "split" path doesn't properly implement DataFrame indexer
1228- @td .skip_array_manager_not_yet_implemented
12291219 def test_iloc_frame_indexer (self ):
12301220 # GH#39004
12311221 df = DataFrame ({"a" : [1 , 2 , 3 ]})
0 commit comments