3
3
4
4
import pandas as pd
5
5
import pandas ._testing as tm
6
+ from pandas .api .types import is_extension_array_dtype
6
7
7
8
dtypes = [
8
9
"int64" ,
@@ -26,7 +27,7 @@ def test_unary_unary(dtype):
26
27
@pytest .mark .parametrize ("dtype" , dtypes )
27
28
def test_unary_binary (request , dtype ):
28
29
# unary input, binary output
29
- if pd . api . types . is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
30
+ if is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
30
31
request .node .add_marker (
31
32
pytest .mark .xfail (
32
33
reason = "Extension / mixed with multiple outputs not implemented."
@@ -61,9 +62,9 @@ def test_binary_input_dispatch_binop(dtype):
61
62
@pytest .mark .parametrize ("dtype_b" , dtypes )
62
63
def test_binary_input_aligns_columns (request , dtype_a , dtype_b ):
63
64
if (
64
- pd . api . types . is_extension_array_dtype (dtype_a )
65
+ is_extension_array_dtype (dtype_a )
65
66
or isinstance (dtype_a , dict )
66
- or pd . api . types . is_extension_array_dtype (dtype_b )
67
+ or is_extension_array_dtype (dtype_b )
67
68
or isinstance (dtype_b , dict )
68
69
):
69
70
request .node .add_marker (
@@ -89,7 +90,7 @@ def test_binary_input_aligns_columns(request, dtype_a, dtype_b):
89
90
90
91
@pytest .mark .parametrize ("dtype" , dtypes )
91
92
def test_binary_input_aligns_index (request , dtype ):
92
- if pd . api . types . is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
93
+ if is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
93
94
request .node .add_marker (
94
95
pytest .mark .xfail (
95
96
reason = "Extension / mixed with multiple inputs not implemented."
0 commit comments