FunctionRacerProblemsRace

Phone Digits

EasypandasPython

contacts has a column phone with text like "(312) 555-0147". Return a list of the phone numbers with everything that is not a digit removed ("3125550147" for that example), as strings, in row order.

Example 1

contacts {"phone":["(312) 555-0147","773-555-0100"]}
returns ["3125550147","7735550100"]

Only the digits stay.

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More pandas problems