Skip to content

Commit

Permalink
Add in cast that was lost in the scramble.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyasr committed Aug 12, 2021
1 parent 745684f commit 939b455
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions python/cudf/cudf/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4316,7 +4316,9 @@ def cumsum(self, axis=None, skipna=True, *args, **kwargs):
2 6 24
3 10 34
"""
return self._scan("sum", axis=axis, skipna=skipna, *args, **kwargs)
return self._scan(
"sum", axis=axis, skipna=skipna, cast_to_int=True, *args, **kwargs
)

def cumprod(self, axis=None, skipna=True, *args, **kwargs):
"""
Expand Down Expand Up @@ -4346,7 +4348,9 @@ def cumprod(self, axis=None, skipna=True, *args, **kwargs):
2 6 504
3 24 5040
"""
return self._scan("prod", axis=axis, skipna=skipna, *args, **kwargs)
return self._scan(
"prod", axis=axis, skipna=skipna, cast_to_int=True, *args, **kwargs
)


class SingleColumnFrame(Frame):
Expand Down

0 comments on commit 939b455

Please sign in to comment.