Skip to content

Commit e7adc03

Browse files
committed
BUG: wrong function.
1 parent a59cfa7 commit e7adc03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/sparse/array.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def _sparse_array_op(left, right, op, name, series=False):
103103
result_dtype = None
104104

105105
if left.sp_index.ngaps == 0 or right.sp_index.ngaps == 0:
106-
with np.seterr(all='ignore'):
106+
with np.errstate(all='ignore'):
107107
result = op(left.get_values(), right.get_values())
108108
fill = op(_get_fill(left), _get_fill(right))
109109

@@ -112,7 +112,7 @@ def _sparse_array_op(left, right, op, name, series=False):
112112
else:
113113
index = right.sp_index
114114
elif left.sp_index.equals(right.sp_index):
115-
with np.seterr(all='ignore'):
115+
with np.errstate(all='ignore'):
116116
result = op(left.sp_values, right.sp_values)
117117
fill = op(_get_fill(left), _get_fill(right))
118118
index = left.sp_index

0 commit comments

Comments
 (0)