@@ -82,9 +82,7 @@ def test_iloc_setitem_fullcol_categorical(self, indexer, key, using_array_manage
82
82
83
83
overwrite = isinstance (key , slice ) and key == slice (None )
84
84
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 :
88
86
# TODO: GH#39986 this probably shouldn't behave differently
89
87
expected = DataFrame ({0 : cat })
90
88
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
108
106
tm .assert_frame_equal (df , expected )
109
107
110
108
@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 ):
112
110
# GH#38952 Case with not setting a full column
113
111
# IntegerArray without NAs
114
112
arr = array ([1 , 2 , 3 , 4 ])
115
113
obj = frame_or_series (arr .to_numpy ("i8" ))
116
114
117
- if frame_or_series is Series or not using_array_manager :
115
+ if frame_or_series is Series :
118
116
values = obj .values
119
117
else :
120
118
values = obj [0 ].values
@@ -131,10 +129,7 @@ def test_iloc_setitem_ea_inplace(self, frame_or_series, box, using_array_manager
131
129
if frame_or_series is Series :
132
130
assert obj .values is values
133
131
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 )
138
133
139
134
def test_is_scalar_access (self ):
140
135
# GH#32085 index with duplicates doesn't matter for _is_scalar_access
@@ -999,9 +994,6 @@ def test_iloc_getitem_readonly_key(self):
999
994
expected = df ["data" ].loc [[1 , 3 , 6 ]]
1000
995
tm .assert_series_equal (result , expected )
1001
996
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
1005
997
def test_iloc_assign_series_to_df_cell (self ):
1006
998
# GH 37593
1007
999
df = DataFrame (columns = ["a" ], index = [0 ])
@@ -1224,8 +1216,6 @@ def test_iloc_getitem_setitem_fancy_exceptions(self, float_frame):
1224
1216
# GH#32257 we let numpy do validation, get their exception
1225
1217
float_frame .iloc [:, :, :] = 1
1226
1218
1227
- # TODO(ArrayManager) "split" path doesn't properly implement DataFrame indexer
1228
- @td .skip_array_manager_not_yet_implemented
1229
1219
def test_iloc_frame_indexer (self ):
1230
1220
# GH#39004
1231
1221
df = DataFrame ({"a" : [1 , 2 , 3 ]})
0 commit comments