I have a dataframe(sample_emails) that provides a list of emails and I would like to extract only the workplace from the email. For example from the email such as [email protected], it should return only the string "uber". I tried writing the code for this but I keep getting a variety of errors.
extract_company = extract_company.find(email[ start['@', end['.']]
def extract_company(email):
return
The extracted value should be returned into the df extract_company