Skip to content

Instantly share code, notes, and snippets.

@jonathanoheix
Created December 18, 2018 09:49
Show Gist options
  • Save jonathanoheix/8a5f975a424f8f564e1341395e7d9f30 to your computer and use it in GitHub Desktop.
Save jonathanoheix/8a5f975a424f8f564e1341395e7d9f30 to your computer and use it in GitHub Desktop.
# remove 'No Negative' or 'No Positive' from text
reviews_df["review"] = reviews_df["review"].apply(lambda x: x.replace("No Negative", "").replace("No Positive", ""))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment