Folding Array with Index
Options
![Chun](https://us.v-cdn.net/6038231/uploads/Dataiku/nAvatar14.png)
Chun
Registered Posts: 2 ✭✭✭✭
The fold array step in Prep Recipe is very useful. I would like to create a new column to keep track of the folded array element, basically to store the array index in a new column. How do I do it in code?
Tagged:
Answers
-
Hi,
I would create a Python (or R) recipe to do that... I think that with the Formula action you can only interact with columns (in each row) but not with rows