Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- domains = ['gmail', 'yahoo', 'outlook']
- def isBusiness(st):
- domain = st.split("@")[1]
- res = True
- for s in domains:
- if s in domain:
- res = False
- break
- return res
- joinedEventsFrame = joinedEventsFrame.merge(joinedEventsFrame['email'].apply(isBusiness).to_frame(name='isBusiness'), left_index=True, right_index=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement