bigframes.pandas.Series.cumsum#
- Series.cumsum()→Series[source]#
Return cumulative sum over a DataFrame or Series axis.
Returns a DataFrame or Series of the same size containing the cumulativesum.
Examples:
>>>s=bpd.Series([2,np.nan,5,-1,0])>>>s0 2.01 <NA>2 5.03 -1.04 0.0dtype: Float64
By default, NA values are ignored.
>>>s.cumsum()0 2.01 <NA>2 7.03 6.04 6.0dtype: Float64
- Parameters:
axis ({0 or'index',1 or'columns'},default 0) – The index or the name of the axis. 0 is equivalent to None or ‘index’.ForSeries this parameter is unused and defaults to 0.
- Returns:
Return cumulative sum of scalar or Series.
- Return type:
On this page