Version: v2.4
Split By Expression
This node splits the incoming DataFrame into two output DataFrames by applying the conditional logic
Input
It accepts a DataFrame as input from the previous Node
Type
transform
Fields
Name | Title | Description |
---|---|---|
conditionExpr | Conditional Expression to split the Data on | Conditional Expression to be used for Splitting the DataFrame into two. DataFrame which matches the condition will go to the lower edge output. The other would go to the higher edge output. |
Examples
Input
id | label | f1 | f2 |
---|---|---|---|
6 | 1.0 | 2.1 | 2.0 |
4 | 0.0 | 4.1 | 5.0 |
5 | 0.0 | 3.1 | 6.0 |
66 | 1.0 | 2.1 | 2.0 |
Parameters
Name | Value |
---|---|
Conditional Expression to split the Data on | id > 22 |
Output1
id | label | f1 | f2 |
---|---|---|---|
66 | 1.0 | 2.1 | 2.0 |
Output2
id | label | f1 | f2 |
---|---|---|---|
6 | 1.0 | 2.1 | 2.0 |
4 | 0.0 | 4.1 | 5.0 |
5 | 0.0 | 3.1 | 6.0 |