File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9727,7 +9727,7 @@ def _where(
9727
9727
cond = cond .align (self , join = "right" )[0 ]
9728
9728
else :
9729
9729
if not hasattr (cond , "shape" ):
9730
- cond = np .asanyarray (cond , dtype = object )
9730
+ cond = np .asanyarray (cond )
9731
9731
if cond .shape != self .shape :
9732
9732
raise ValueError ("Array conditional must be same shape as self" )
9733
9733
cond = self ._constructor (cond , ** self ._construct_axes_dict (), copy = False )
@@ -10112,7 +10112,7 @@ def mask(
10112
10112
10113
10113
# see gh-21891
10114
10114
if not hasattr (cond , "__invert__" ):
10115
- cond = np .array (cond , dtype = object )
10115
+ cond = np .array (cond )
10116
10116
10117
10117
if isinstance (cond , np .ndarray ):
10118
10118
if all (x is NA or lib .is_bool (x ) or x is np .nan for x in cond .flatten ()):
You can’t perform that action at this time.
0 commit comments