Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- +----------------------------------------+---------------+
- | URL | Username |
- +----------------------------------------+---------------+
- | johnsmith/stackoverflow.com/?=abc | johnsmith |
- | michealrod/stackoverflow.com/?=payment | michealrod |
- | stephaniejean/stackoverflow.com/?=abc | stephaniejean |
- +----------------------------------------+---------------+
- df['exists'] = df.apply(lambda x : df['Username'] in df['URL']).any()
Add Comment
Please, Sign In to add comment