Last active
September 14, 2019 14:08
-
-
Save dradecic/68e81f6610b26fe8da68e25d217c5052 to your computer and use it in GitHub Desktop.
art7_lambdas
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
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