File tree 3 files changed +2
-5
lines changed
3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
import numpy as np
6
6
7
- from pandas .api .extensions import register_extension_dtype , take
7
+ from pandas .api .extensions import take
8
8
from pandas .core .arrays .mask ._base import BoolArray , BoolDtype
9
9
10
10
11
- @register_extension_dtype
12
11
class NumpyBoolDtype (BoolDtype ):
13
12
14
13
na_value = np .nan
Original file line number Diff line number Diff line change 10
10
11
11
import numpy as np
12
12
13
- from pandas .api .extensions import register_extension_dtype , take
13
+ from pandas .api .extensions import take
14
14
from pandas .api .types import is_scalar
15
15
from pandas .core .arrays .mask ._base import BoolArray , BoolDtype
16
16
24
24
raise
25
25
26
26
27
- @register_extension_dtype
28
27
class ArrowBoolDtype (BoolDtype ):
29
28
30
29
na_value = pa .NULL
Original file line number Diff line number Diff line change 10
10
pytest .importorskip ('pyarrow' , minversion = "0.10.0" )
11
11
12
12
13
-
14
13
@pytest .fixture
15
14
def dtype ():
16
15
return ArrowBoolDtype ()
You can’t perform that action at this time.
0 commit comments