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'?
-
A
Using a for loop to iterate over each phone number and manually replace characters.
-
B
Applying the `astype(int)` method to the column.
-
C
Using the `.str.replace()` method with a regular expression to remove all non-digit characters.
-
D
Using the `fillna()` method to replace malformed numbers with a standard one.