FilterWithMask / Manipulation Layer
Filter DataFrame rows using a boolean mask column. Similar to pandas' df[mask] or R's subset().
Example:
Original DataFrame:
id | value | is_valid |
---|---|---|
1 | 100 | true |
2 | -5 | false |
3 | 200 | true |
4 | -10 | false |
Result (filtering with is_valid):
id | value | is_valid |
---|---|---|
1 | 100 | true |
3 | 200 | true |
Result (filtering with is_valid, negative=true):
id | value | is_valid |
---|---|---|
2 | -5 | false |
4 | -10 | false |
Common applications:
- Data validation filtering
- Quality control selection
- Condition-based subsetting
- Threshold filtering
- Status-based selection
Table
0
0
Table
SelectMask
columnBoolean column for filtering. Examples:
- Validation flags
- Quality indicators
- Threshold tests
- Status checks Only rows where mask is true (or false if negated) are kept
Negative
boolInvert the filter condition:
- false (default): Keep rows where mask is true
- true: Keep rows where mask is false