File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 23
23
DatetimeArray ,
24
24
TimedeltaArray ,
25
25
)
26
+ from pandas .util .version import Version
26
27
27
28
28
29
@pytest .fixture
@@ -223,15 +224,22 @@ def test_missing_required_dependency():
223
224
assert name in output
224
225
225
226
226
- def test_frame_setitem_dask_array_into_new_col ():
227
+ def test_frame_setitem_dask_array_into_new_col (request ):
227
228
# GH#47128
228
229
229
230
# dask sets "compute.use_numexpr" to False, so catch the current value
230
231
# and ensure to reset it afterwards to avoid impacting other tests
231
232
olduse = pd .get_option ("compute.use_numexpr" )
232
233
233
234
try :
235
+ dask = pytest .importorskip ("dask" )
234
236
da = pytest .importorskip ("dask.array" )
237
+ if Version (dask .__version__ ) <= Version ("2025.1.0" ) and Version (
238
+ np .__version__
239
+ ) >= Version ("2.1" ):
240
+ request .applymarker (
241
+ pytest .mark .xfail (reason = "loc.__setitem__ incorrectly mutated column c" )
242
+ )
235
243
236
244
dda = da .array ([1 , 2 ])
237
245
df = DataFrame ({"a" : ["a" , "b" ]})
You can’t perform that action at this time.
0 commit comments