BuildlyBuildly
DashboardExercisesProfileHelp
Data Science/Module 3: Importing & Handling Files/String Cleanup (Series)2/3
Exercise·7 min·10 XP

Normalize Text Values

Context. An email column has inconsistent entries — stray spaces and mixed casing — so the same address looks different across rows.

Your task. Write normalize_emails(df) that returns the email column as a Series, with surrounding whitespace stripped and every value lowercased.

Example. " Alice@MAIL.com " → "alice@mail.com".

Notes. Return a Series, not a DataFrame. Already-clean values pass through unchanged.

Previous
Fix a Numeric Column
Next
Strip Separators from a Column