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