File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -54,8 +54,8 @@ def __iand__(self, other):
54
54
return type (self ).from_scalars (
55
55
np .array (self , copy = False ) & (np .array (other , copy = False )))
56
56
57
- def view (self , dtype ):
58
- return np .array (self ._data , copy = False ).view (dtype )
57
+ def view (self , dtype = None ):
58
+ return np .array (self ._data , copy = False ).view (dtype = dtype )
59
59
60
60
def sum (self , axis = None ):
61
61
return np .array (self , copy = False ).sum ()
Original file line number Diff line number Diff line change @@ -2495,7 +2495,7 @@ def check_bool_indexer(ax, key):
2495
2495
result = result .to_dense ()
2496
2496
result = np .asarray (result , dtype = bool )
2497
2497
elif isinstance (result , ABCMaskArray ):
2498
- pass
2498
+ result = np . array ( result , copy = False )
2499
2499
else :
2500
2500
# is_bool_indexer has already checked for nulls in the case of an
2501
2501
# object array key, so no check needed here
You can’t perform that action at this time.
0 commit comments