Practice Test Geeks home

Data Science with Python Data Cleaning and Preparation Questions and Answers

You are cleaning a dataset of customer information in a pandas DataFrame named 'df'.
The 'phone_number' column contains numbers in various formats (e.g., '(123) 456-7890', '123.456.7890', '1234567890').

Which of the following is the most effective approach to standardize all phone numbers to the format '1234567890'?

Select your answer