Skip to content

Filter on Falsy Values

Description

This activity filters the values in the columns based on the selected falsie values. Falsie values are a set of predefined values including False, 0, NaN, empty string, and undefined.

Input

Data Only

Output

Transformed Data

Configuration Fields

  • Column Specifies the column to filter based on the falsie value.
  • Falsy Values Defines the falsie values to be filtered (False, 0, NaN, empty string, undefined).
  • Flag Rows Column Name The name of the new flag column. This is rendered only when the action is Flag Rows.
  • Actions Specifies the actions for rows containing falsie values
    1. Keep Matching Rows Selects only the matching rows.
    2. Remove Matching Rows Removes the matching rows from the data.
    3. Flag Rows Flags the rows that contain falsie values (1 for flagged, 0 for non-flagged).

Sample Input 1

column_nameother_column
1data
0more data
NaNtest
example
2content

Sample Configuration 1

alt text

Sample Output 1 (Flag Rows Action)

column_nameother_columnfalsy_flag
1data0
0more data1
NaNtest1
example0
2content0

Sample Input 2

column_nameother_column
1data
0more data
NaNtest
example
2content

Sample Configuration 2

alt text

Sample Output 2

column_nameother_column
1data
2content