← rtrim operator page · string/rtrim/ds/manual_ex_1
pandas ✅ · DuckDB ✅
rtrim on values that end with a space, which "may not be visualised" on the page; the input quotes "hello " and "hi ", so the space is data.
Whitespace removal, Example 1, output verbatim: "Removes trailing or/and leading whitespace from a string."
Me_1 is hello and hi, without the trailing space.
DS_r := rtrim(DS_1);
| Id_1 | Id_2 | Me_1 |
|---|---|---|
| 1 | A | hello |
| 2 | B | hi |
{
"datasets": [
{
"name": "DS_1",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier", "nullable": false},
{"name": "Id_2", "type": "String", "role": "Identifier", "nullable": false},
{"name": "Me_1", "type": "String", "role": "Measure", "nullable": true}
]
}
]
}
| Id_1 | Id_2 | Me_1 |
|---|---|---|
| 1 | A | hello |
| 2 | B | hi |
{
"datasets": [
{
"name": "DS_r",
"DataStructure": [
{"name": "Id_1", "type": "Integer", "role": "Identifier"},
{"name": "Id_2", "type": "String", "role": "Identifier"},
{"name": "Me_1", "type": "String", "role": "Measure"}
]
}
]
}