bigframes.pandas.DataFrame.cumsum#
- DataFrame.cumsum()[source]#
Return cumulative sum over columns.
Returns a DataFrame of the same size containing the cumulative sum.
Examples:
>>>df=bpd.DataFrame({"A":[3,1,2],"B":[1,2,3]})>>>df A B0 3 11 1 22 2 3[3 rows x 2 columns]
>>>df.cumsum() A B0 3 11 4 32 6 6[3 rows x 2 columns]
- Returns:
Return cumulative sum of DataFrame.
- Return type:
- Raises:
ValueError – If values are not of numeric type.
On this page