7
7
from numba import cuda
8
8
9
9
import cudf
10
+ from cudf .core ._compat import PANDAS_GE_220
10
11
from cudf .core .missing import NA
11
12
from cudf .core .udf ._ops import (
12
13
arith_ops ,
@@ -482,6 +483,9 @@ def func(x):
482
483
run_masked_udf_series (func , data , check_dtype = False )
483
484
484
485
486
+ @pytest .mark .xfail (
487
+ PANDAS_GE_220 , reason = "https://github.com/pandas-dev/pandas/issues/57390"
488
+ )
485
489
def test_series_apply_null_conditional ():
486
490
def func (x ):
487
491
if x is NA :
@@ -506,6 +510,9 @@ def func(x):
506
510
run_masked_udf_series (func , data , check_dtype = False )
507
511
508
512
513
+ @pytest .mark .xfail (
514
+ PANDAS_GE_220 , reason = "https://github.com/pandas-dev/pandas/issues/57390"
515
+ )
509
516
@pytest .mark .parametrize ("op" , comparison_ops )
510
517
def test_series_compare_masked_vs_masked (op ):
511
518
"""
@@ -562,6 +569,9 @@ def func(x):
562
569
run_masked_udf_series (func , data , check_dtype = False )
563
570
564
571
572
+ @pytest .mark .xfail (
573
+ PANDAS_GE_220 , reason = "https://github.com/pandas-dev/pandas/issues/57390"
574
+ )
565
575
def test_series_masked_is_null_conditional ():
566
576
def func (x ):
567
577
if x is NA :
@@ -742,8 +752,14 @@ def func(x, c):
742
752
],
743
753
)
744
754
@pytest .mark .parametrize ("op" , arith_ops + comparison_ops )
745
- def test_masked_udf_scalar_args_binops_multiple_series (data , op ):
755
+ def test_masked_udf_scalar_args_binops_multiple_series (request , data , op ):
746
756
data = cudf .Series (data )
757
+ request .applymarker (
758
+ pytest .mark .xfail (
759
+ op in comparison_ops and PANDAS_GE_220 and data .dtype .kind != "b" ,
760
+ reason = "https://github.com/pandas-dev/pandas/issues/57390" ,
761
+ )
762
+ )
747
763
748
764
def func (data , c , k ):
749
765
x = op (data , c )
0 commit comments