Problems / Normalize Text / Editorial
Text normalization ensures consistency. DuckDB does not have INITCAP, so proper-case is built manually:
INITCAP
```sql
CONCAT(UPPER(LEFT(col, 1)), LOWER(SUBSTRING(col, 2)))
```
This uppercases the first character and lowercases the rest. Use LOWER() for emails since they are case-insensitive by convention.
LOWER()
In PySpark, F.initcap() is available directly through SQLFrame.
F.initcap()
Solve Normalize Text yourself →