Skip to content

Commit 67930d1

Browse files
committed
change to pass on np_dev
1 parent 676a2e4 commit 67930d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/internals/blocks.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1348,8 +1348,8 @@ def func(cond, values, other):
13481348
return self.make_block(result)
13491349

13501350
# might need to separate out blocks
1351-
axis = cond.ndim - 1
1352-
cond = cond.swapaxes(axis, 0)
1351+
if cond.ndim == 1:
1352+
cond = cond.transpose()
13531353
mask = np.array([cond[i].all() for i in range(cond.shape[0])],
13541354
dtype=bool)
13551355

0 commit comments

Comments
 (0)