I have a dataframe with email addresses. I need to replace every ending of email address with a '.mn'. What I mean by ending is '.org', '.com', etc.
Ex. John@smith.com becomes John@smith.mn
Not sure what I am doing wrong.
This is what I have so far, but this is not replacing or giving me an error message:
email['ADDR'] = email['ADDR'].str.replace(r'[.]{2,}', '.mn')
Thank you in advance.