Jan-27-2023, 07:17 PM
I have a dataframe column for emal addresses and I am trying to find the count of the top domains.
I am sppliting the email using the '@" as the separator and trying to grab the domain part as follows:
I am sppliting the email using the '@" as the separator and trying to grab the domain part as follows:
df['Email'].str.split('@')[1]
# I get the following list instead of the second part of the list:
[output]
['anthony41', 'reed.com']
[/output] how can I just get the domain part? in this case 'reed.com'?
