← less operator page · comparison/less/ds_sc/manual_ex_1
pandas ✅ · DuckDB ✅
DS_1 < 15000000: every measure value of DS_1 against a scalar, with a null measure.
Less than, Example 1, output verbatim: "The operator < returns true if left is smaller than right, false otherwise."
bool_var is true for B, G, F and W, false for S (46818219) and null for M, whose measure is null.
DS_r := DS_1 < 15000000;
| Id_1 | Id_2 | Id_3 | Id_4 | Me_1 |
|---|---|---|---|---|
| 2012 | B | Total | Total | 11094850 |
| 2012 | G | Total | Total | 11123034 |
| 2012 | S | Total | Total | 46818219 |
| 2012 | M | Total | Total | |
| 2012 | F | Total | Total | 5401267 |
| 2012 | W | Total | Total | 7954662 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Time_Period", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Id_3", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Id_4", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "Integer", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Id_3 | Id_4 | bool_var |
|---|---|---|---|---|
| 2012 | B | Total | Total | true |
| 2012 | G | Total | Total | true |
| 2012 | S | Total | Total | false |
| 2012 | M | Total | Total | |
| 2012 | F | Total | Total | true |
| 2012 | W | Total | Total | true |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Time_Period", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Id_3", "type": "String", "role": "Identifier"},
{"name": "Id_4", "type": "String", "role": "Identifier"},
{"name": "bool_var", "type": "Boolean", "role": "Measure"}
]
}
]
}