I have two dataframes looks like:
col1
0 1
col2
0 2
1 3
2 4
3 5
4 6
My goal is to fill col1 using the numbers from col2:
col1 col2
0 1 2
1 2(=1x2) 3
2 6(=2x3) 4
3 24(=6x4) 5
4 102(=24x5) 6
So, that number in col1 calculated as the product of the value in col1 for the previous row and value in col2 for the previous row.