Skip to content

Instantly share code, notes, and snippets.

@Nithilaa
Created June 10, 2021 03:30
Show Gist options
  • Save Nithilaa/7051c8feb28bc72e201d36a50df5e5ed to your computer and use it in GitHub Desktop.
Save Nithilaa/7051c8feb28bc72e201d36a50df5e5ed to your computer and use it in GitHub Desktop.
remove http tags
%time df2['Review_Processed'] = df2['Review'].map(lambda x : ' '.join(re.sub("(@[A-Za-z0-9]+)|([^0-9A-Za-z \t])|(\w+:\/\/\S+)"," ",x).split()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment