5
5
6
6
import pandas as pd
7
7
import pandas ._testing as tm
8
+ from pandas .api .types import is_extension_array_dtype
8
9
9
10
dtypes = [
10
11
"int64" ,
@@ -28,7 +29,7 @@ def test_unary_unary(dtype):
28
29
@pytest .mark .parametrize ("dtype" , dtypes )
29
30
def test_unary_binary (request , dtype ):
30
31
# unary input, binary output
31
- if pd . api . types . is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
32
+ if is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
32
33
request .node .add_marker (
33
34
pytest .mark .xfail (
34
35
reason = "Extension / mixed with multiple outputs not implemented."
@@ -63,9 +64,9 @@ def test_binary_input_dispatch_binop(dtype):
63
64
@pytest .mark .parametrize ("dtype_b" , dtypes )
64
65
def test_binary_input_aligns_columns (request , dtype_a , dtype_b ):
65
66
if (
66
- pd . api . types . is_extension_array_dtype (dtype_a )
67
+ is_extension_array_dtype (dtype_a )
67
68
or isinstance (dtype_a , dict )
68
- or pd . api . types . is_extension_array_dtype (dtype_b )
69
+ or is_extension_array_dtype (dtype_b )
69
70
or isinstance (dtype_b , dict )
70
71
):
71
72
request .node .add_marker (
@@ -98,7 +99,7 @@ def test_binary_input_aligns_columns(request, dtype_a, dtype_b):
98
99
99
100
@pytest .mark .parametrize ("dtype" , dtypes )
100
101
def test_binary_input_aligns_index (request , dtype ):
101
- if pd . api . types . is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
102
+ if is_extension_array_dtype (dtype ) or isinstance (dtype , dict ):
102
103
request .node .add_marker (
103
104
pytest .mark .xfail (
104
105
reason = "Extension / mixed with multiple inputs not implemented."
0 commit comments