String transform
String transform — stringTransform
Apply a string operation to a column.
Use cases
- Normalize casing (
lower/upper/title/capitalize) and trim whitespace (strip). - Replace a substring, measure length (
len), or zero-pad codes (pad).
What it does
Applies the chosen operation to every value in the target column in place. Chain multiple String transform nodes (one per operation) for multi-step cleaning.
String transform: lower(email), then strip(name)
Configuration
| Config key | Type | Required | Description |
|---|---|---|---|
column | string | Yes | Column to transform |
operation | string | Yes | lower, upper, strip, title, capitalize, len, replace, pad |
find | string | Conditional | Required for replace |
replace_with | string | No | Replacement for replace (default empty) |
width | int | Conditional | Target width, required for pad |
fill_char | string | No | Pad character (default space) |
side | string | No | left (default) or right for pad |
Generated Python code
df_2 = df_1.assign(region=lambda _d: _d['region'].astype('string').str.strip())
Tips & common mistakes
capitalizevstitle:capitalizeupper-cases only the first character of the whole string;titleupper-cases the first letter of every word.replaceneedsfind;padneedswidth— the form blocks saving otherwise.lenproduces an integer column (character counts), not text.