← trim operator page · string/trim/sc/leading_and_trailing_spaces
pandas ✅ · DuckDB ✅
trim of a string with spaces at both ends, where the page's example has a trailing space only.
Whitespace removal: "Removes trailing or/and leading whitespace from a string. For example, trim("Hello ") gives "Hello"."
SC_r is Hello, a String: both ends are trimmed.
SC_r := trim(" Hello ");
{
"scalars": [
{"name": "SC_r", "type": "String", "value": "Hello"}
]
}