Skip to content

Commit a3ff481

Browse files
author
Santhosh Kumar Bethi
committed
added condition to avoid max recursion depth
1 parent 813d76e commit a3ff481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/sparse/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ def cumsum(self, axis: AxisInt = 0, *args, **kwargs) -> SparseArray:
15721572

15731573
if not self._null_fill_value:
15741574
if isinstance(self, SparseArray) and self.fill_value == 0:
1575-
# special case where we can avoid densifying
1575+
# special case where we can avoid max recursion depth
15761576
return SparseArray(self.to_dense().cumsum())
15771577
return SparseArray(self.to_dense()).cumsum()
15781578

0 commit comments

Comments
 (0)