Created
August 31, 2022 10:54
-
-
Save saiankit/cace597b676ae9ce312bb6207fb04f48 to your computer and use it in GitHub Desktop.
Phone number cleaning from contacts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
data = pd.read_csv("final.csv") | |
for i, j in data.iterrows(): | |
j["phone_number"] = "+91" + j["phone_number"].replace("-","").replace(" ","").replace("(","").replace(")","") | |
data.to_csv('send.csv') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment