Discover all of the brand-new features and improvements to existing capabilities in the Dataiku 11.3 updateLET'S GO

inter-rows computations

AdhiThibu
Level 2
inter-rows computations

Hi Dataikers!

I want to know if there is a way in visual recipes to use the value from the previous row to compute the next row and do it iteratively to cover the whole column?

I'm sure It can be done in python but I want to know about Dataiku.

Thank you!exx.PNG

0 Kudos
1 Reply
HarizoR
Developer Advocate

Hi,

You can use the Window recipe and generate a "lag" column that will take the "previous" value of another column with respect to an ordering column you will specify (in your case, probably Group_ID).

You can find a more detailed example of the Window recipe here.

 

Best,

Harizo