File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,8 @@ def _coerce_to_ndarray(self):
334
334
335
335
# TODO(jreback) make this better
336
336
data = self ._data .astype (object )
337
- data [self ._mask ] = self ._na_value
337
+ mask = np .array (self ._mask , copy = False )
338
+ data [mask ] = self ._na_value
338
339
return data
339
340
340
341
__array_priority__ = 1000 # higher than ndarray so ops dispatch to us
@@ -563,6 +564,7 @@ def cmp_method(self, other):
563
564
else :
564
565
mask = self ._mask | mask
565
566
567
+ mask = np .array (mask , copy = False )
566
568
result [mask ] = op_name == 'ne'
567
569
return result
568
570
Original file line number Diff line number Diff line change 2
2
import pytest
3
3
4
4
import pandas as pd
5
- from pandas .core .arrays .mask ._pyarrow import ( # isort:skip
6
- ArrowBoolArray , ArrowBoolDtype )
7
5
from pandas .tests .extension import base
8
6
import pandas .util .testing as tm
9
7
10
8
pytest .importorskip ('pyarrow' , minversion = "0.10.0" )
11
9
10
+ from pandas .core .arrays .mask ._pyarrow import ( # isort:skip
11
+ ArrowBoolArray , ArrowBoolDtype )
12
+
12
13
13
14
@pytest .fixture
14
15
def dtype ():
You can’t perform that action at this time.
0 commit comments