Advertisement
Guest User

Untitled

a guest
May 28th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. domains = ['gmail', 'yahoo', 'outlook']
  2.  
  3. def isBusiness(st):
  4. domain = st.split("@")[1]
  5. res = True
  6. for s in domains:
  7. if s in domain:
  8. res = False
  9. break
  10. return res
  11.  
  12. 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