I've the following string in python, example:
"Peter North / John West"
Note that there are two spaces before and after the forward slash.
What should I do such that I can clean it to become
"Peter North_John West"
I tried using regex but I am not exactly sure how. Should I use re.sub or pandas.replace?
"Peter North / John West".replace(" / ", "_")?