Interview practice question
Phone numbers in many formats
Data Analyst · Data Cleaning and Quality · Beginner
A phone number column contains formats like "+44 20 1234 5678", "020-1234-5678" and "2012345678". How would you standardise it?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Remove spaces, dashes, brackets.
- Add country codes using country field.
- Standard format (E.164).
- Validate length/pattern; flag invalid.
- Use phone parsing libraries.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.