← lower operator page · string/lower/ds/all_caps_and_mixed_case
pandas ✅ · DuckDB ✅
lower on a dataset with an all-capitals value, a mixed-case one and a null.
Character case conversion: "Converts the character case of a string in upper or lower case."
HELLO gives hello and Hi There gives hi there. A null operand gives a null result: "most of the scalar operations (arithmetic, logical, and others) return null when any of their arguments is null" (User Manual), as the manual's length and instr examples show.
DS_r := lower(DS_1);
| Id_1 | Me_1 |
|---|---|
| 1 | HELLO |
| 2 | Hi There |
| 3 |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "String", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Me_1 |
|---|---|
| 1 | hello |
| 2 | hi there |
| 3 |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Me_1", "type": "String", "role": "Measure"}
]
}
]
}