Skip to content

Instantly share code, notes, and snippets.

@dradecic
Last active September 14, 2019 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dradecic/68e81f6610b26fe8da68e25d217c5052 to your computer and use it in GitHub Desktop.
Save dradecic/68e81f6610b26fe8da68e25d217c5052 to your computer and use it in GitHub Desktop.
art7_lambdas
phone_numbers = [
'500/718/2129',
'487/293/3939',
'532/321/9999'
]
df = pd.DataFrame(data={ 'Phone_Numbers': phone_numbers })
df['Phone_Numbers'].apply(lambda x: x.replace('/', '-'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment