Iterate through values inside a loop

I have a dataframe with several columns.
Column1 is numeric with values that range from 0 to 2.
I want to iteratively perform an operation to this dataframe, each time, reducing by X the number of samples for the highest and the lowest values.

It’s clearer in the following workflow.
The table creator has 10 values (0.05, 0.10…) which corresponds to the percentage of rows that will be removed from the database, and hence, we will be iterating 10 times.
Now, I would like to use each of these values as a flow variable inside the math formula node.
So I would be selecting 5% of the rows in the first loop. 10% in the second loop, etc.
But not sure how to do this.

LoopRemovingInEachStep.knwf (40.8 KB)

Hi @RoyBatty

Is this what your are looking for?
LoopRemovingInEachStep v2.knwf (71.6 KB)


gr. Hans

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.