← greater operator page · comparison/greater/ds_sc/manual_ex_1
pandas ✅ · DuckDB ✅
DS_1 > 20: every measure value of DS_1 against a scalar, with a null measure.
Greater than, Example 1, output verbatim: "The operator > returns true if left is greater than right, false otherwise."
bool_var is true for F (29.5), false for R (12.2) and null for G, whose measure is null.
DS_r := DS_1 > 20;
| Id_1 | Id_2 | Id_3 | Id_4 | Id_5 | Me_1 |
|---|---|---|---|---|---|
| 2 | G | 2011 | Total | Percentage | |
| 2 | R | 2011 | Total | Percentage | 12.2 |
| 2 | F | 2011 | Total | Percentage | 29.5 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Id_3", "type": "Time_Period", "role": "Identifier", "nullable": false},
{"name": "Id_4", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Id_5", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Number", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Id_3 | Id_4 | Id_5 | bool_var |
|---|---|---|---|---|---|
| 2 | G | 2011 | Total | Percentage | |
| 2 | R | 2011 | Total | Percentage | false |
| 2 | F | 2011 | Total | Percentage | true |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Id_3", "type": "Time_Period", "role": "Identifier"},
{"name": "Id_4", "type": "String", "role": "Identifier"},
{"name": "Id_5", "type": "String", "role": "Identifier"},
{"name": "bool_var", "type": "Boolean", "role": "Measure"}
]
}
]
}