Skip to content

Commit

Permalink
feat: strip trailing !s
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Neemann authored and steveoh committed Mar 29, 2023
1 parent ab219e8 commit 11f85f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions row.py
Original file line number Diff line number Diff line change
Expand Up @@ -1029,6 +1029,9 @@ def filter_results(previous_results_file, out_dir):
logging.info("Removing leading colons")
working_df["text"] = working_df["text"].apply(lambda x: x.lstrip(":"))

#: remove trailing exclamation points
working_df["text"] = working_df["text"].progress_apply(lambda x: x.rstrip("!"))

#: replace euro symbol with 'E'
logging.info("Replacing euro symbol with 'E'")
working_df["text"] = working_df.apply(lambda r: r["text"].replace("€", "E").strip(), axis=1)
Expand Down

0 comments on commit 11f85f0

Please sign in to comment.