# Series.cumProd

> danfo.Series.**cumProd**()

| Parameters | Type   | Description                                                    | Default                                                |
| ---------- | ------ | -------------------------------------------------------------- | ------------------------------------------------------ |
| options    | Object | **inplace**: Whether to perform the operation in-place or not. | <p>{</p><p><strong>inplace</strong>: false</p><p>}</p> |

**Example**

{% tabs %}
{% tab title="Node" %}

```javascript
const dfd = require("danfojs-node")


let data1 = [10, 45, 56, 25, 23, 20, 10]
let sf1 = new dfd.Series(data1)

sf1.cumProd().print()
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Output" %}

```
╔═══╤════════════╗
║ 0 │ 10         ║
╟───┼────────────╢
║ 1 │ 450        ║
╟───┼────────────╢
║ 2 │ 25200      ║
╟───┼────────────╢
║ 3 │ 630000     ║
╟───┼────────────╢
║ 4 │ 14490000   ║
╟───┼────────────╢
║ 5 │ 289800000  ║
╟───┼────────────╢
║ 6 │ 2898000000 ║
╚═══╧════════════╝
```

{% endtab %}
{% endtabs %}
