[ Web Proxy ]
URL:
Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.DataFrame.cumprod.html [Back]  [Original]

bigframes.pandas.DataFrame.cumprod — bigframes documentation
Back to top
Search the docs ...:

bigframes.pandas.DataFrame.cumprod#

DataFrame.cumprod() DataFrame[source]#

Return cumulative product over columns.

Returns a DataFrame of the same size containing the cumulative product.

Examples:

>>> df = bpd.DataFrame({"A": [3, 1, 2], "B": [1, 2, 3]})
>>> df
    A       B
0   3       1
1   1       2
2   2       3

[3 rows x 2 columns]
>>> df.cumprod()
     A    B
0  3.0  1.0
1  3.0  2.0
2  6.0  6.0

[3 rows x 2 columns]
Returns:

Return cumulative product of DataFrame.

Return type:

bigframes.pandas.DataFrame

Raises:

ValueError If values are not of numeric type.


Web Proxy Viewer  |  New URL  |  Original Page