python-phonenumber

Populating Country column from international phone numbers

Populating Country column from international phone numbers Question: I have a dataframe with several data including the column phone. I would like to create a column name country, based on the phone numbers. The phone numbers are in the format +country_code_phonenumber, i.e.,for several countries. Example +351xxxxxxxxx +1xxxxxxxxxx +34xxxxxxxxx +55xxxxxxxxxxx What is the best way to …

Total answers: 1