Skip to content

Instantly share code, notes, and snippets.

@saiankit
Created August 31, 2022 10:54
Show Gist options
  • Save saiankit/cace597b676ae9ce312bb6207fb04f48 to your computer and use it in GitHub Desktop.
Save saiankit/cace597b676ae9ce312bb6207fb04f48 to your computer and use it in GitHub Desktop.
Phone number cleaning from contacts
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