Supported in: Batch
Aggregate expressions based on a condition statement.
Transform categories: Aggregate
Description: Count non null rows for all columns. Argument values:
column
,column
, _non_null
],Input:
id | value | distance |
---|---|---|
1 | 100 | 2000 |
2 | null | 100 |
3 | 500 | 300 |
Output:
id_non_null | value_non_null | distance_non_null |
---|---|---|
3 | 2 | 3 |
Description: Count non null and mean of integer columns. Argument values:
column
,column
, _non_null
],column
,column
, _mean
],Input:
id | value | distance |
---|---|---|
1 | 100 | 2000 |
2 | null | 100 |
3 | 500 | 300 |
Output:
id_non_null | id_mean | value_non_null | value_mean |
---|---|---|---|
3 | 2.0 | 2 | 300.0 |
Argument values:
column
,column
, _mean
],id
]Input:
id | value | distance | airline |
---|---|---|---|
1 | 100 | 2000 | new air |
1 | 200 | 3000 | new air |
2 | 500 | 3000 | foundry air |
2 | 400 | 1000 | foundry air |
Output:
id | id_mean | value_mean | distance_mean |
---|---|---|---|
1 | 1.0 | 150.0 | 2500.0 |
2 | 2.0 | 450.0 | 2000.0 |
Description: Mean of all integer columns. Argument values:
column
,column
, _mean
],Input:
id | value | distance |
---|---|---|
1 | 100 | 2000 |
3 | 500 | 300 |
Output:
id_mean | value_mean |
---|---|
2.0 | 300.0 |