Skip to content

Instantly share code, notes, and snippets.

@arshjat
Created January 1, 2019 10:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arshjat/42fe7404a6c16d959fee904062ee6d26 to your computer and use it in GitHub Desktop.
Save arshjat/42fe7404a6c16d959fee904062ee6d26 to your computer and use it in GitHub Desktop.
train['tweet'] = train['tweet'].apply(lambda x : ' '.join([w for w in x.split() if not w.startswith('@') ]) )
test['tweet'] = test['tweet'].apply(lambda x : ' '.join([w for w in x.split() if not w.startswith('@') ]) )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment