Data Cleaning Exercises

Glossary

Trim

Remove a declared set of characters from both ends of a value.

Tools disagree on what whitespace means. DuckDB's trim(x) removes spaces only; pandas .str.strip() removes all Unicode whitespace. Name the characters you remove, and never change the inside of the value.

Related: Unicode normalization (NFC), Leading zeros