I have a dataframe of email addresses, and I want to search which are the most used email providers (eg. gmail.com, yahoo.com etc). I used the following code
dfEmail=Ecom['Email']
I have the following data
0 [email protected]
1 [email protected]
2 [email protected]
3 [email protected]
4 [email protected]
...
9995 [email protected]
9996 [email protected]
9997 [email protected]
9998 [email protected]
9999 [email protected]
Name: Email, Length: 10000, dtype: object
I want to split these email addresses at "@" and get only names of email providers.
I tried the following
dfEmailSplit=dfEmail.str.split('@')
dfEmailSplit[500][1]
this gave me the following result:
'gmail.com'
How do i do this for all the email addresses?