CumProd / Computation Layer

Calculate the running product of values in a column. Similar to pandas cumprod() or running product in SQL.

For each position i:

Applications:

  • Compound growth calculations
  • Sequential multipliers
  • Factorial computations

Note: Ignores null values. May require attention to overflow for large sequences.

Table
0
0
Table

Transforms

[, ...]

Select

column

The column for cumulative product. Example with [2, 3, 2, 2]:

  • Forward: [2, 6, 12, 24]
  • Reverse: [24, 12, 4, 2]
false

Controls multiplication direction:

  • false: multiply from top to bottom
  • true: multiply from bottom to top

Name for the new column. If not provided, the system generates a unique name. If AsColumn matches an existing column, the existing column is replaced. The name should follow valid column naming conventions.