Skip to content

Commit 1cbb4a8

Browse files
committed
BUG: Fix wrong argument in Sparse.where
1 parent f89a380 commit 1cbb4a8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/core/sparse/frame.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,11 @@ def copy(self, deep=True):
336336

337337
def where(self, cond, other=np.nan, inplace=False, axis=None, level=None,
338338
try_cast=False, raise_on_error=True):
339-
result = super(SparseDataFrame, self).where(cond, other,
340-
inplace, axis,
341-
level, try_cast,
342-
raise_on_error)
339+
result = super(SparseDataFrame,
340+
self).where(cond, other,
341+
inplace, axis,
342+
level, try_cast,
343+
raise_on_error=raise_on_error)
343344
result._default_fill_value = other
344345
return result
345346

0 commit comments

Comments
 (0)