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 pdunlap@yahoo.com
1 anthony41@reed.com
2 amymiller@morales-harrison.com
3 brent16@olson-robinson.info
4 christopherwright@gmail.com
...
9995 iscott@wade-garner.com
9996 mary85@hotmail.com
9997 tyler16@gmail.com
9998 elizabethmoore@reid.net
9999 rachelford@vaughn.com
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?