Skip to content

Commit 52c1f1b

Browse files
committed
CI: workaround numpydev bug
We don't want this long-term. But there's no easy way to skip this for numpydev, since it errors in setup.
1 parent d569905 commit 52c1f1b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pandas/core/arrays/sparse/array.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,9 @@ def make_sparse(arr, kind="block", fill_value=None, dtype=None, copy=False):
15721572
mask = splib.make_mask_object_ndarray(arr, fill_value)
15731573
else:
15741574
mask = arr != fill_value
1575+
# https://github.com/pandas-dev/pandas/issues/29432
1576+
# workaround numpydev issue
1577+
mask = mask.astype(bool)
15751578

15761579
length = len(arr)
15771580
if length != len(mask):

0 commit comments

Comments
 (0)