Questions & Answers

By keeping only one entry, how can remove multiple occurrences of the special character

How will I achieve below mentioned output.

I wanted to remove multiple occurrences of the **ONLY **special character **not words or digit. **

enter image description here

I tried this code but its replace all the value

Single_Column['Workload_2'].replace(regex=True, inplace=True, to_replace=r"[^a-zA-Z0-9 -]", value=r'-')

2023-01-25 00:30:03
Please remember to post your data as text, not images.
Answers(0) :